python-3.x tag

16 questions


1 answers
123 views
0
Questions about creating Python dynamic variables.

from PIL import Imagefrom os import listdirfrom os.path import isfile, joinfilepath = './FACE/'files = [f for f in listdir(filepath) if isfile(join(filepath, f))]for i in range(0, files.len()):im[i] =...

2 years ago

1 answers
74 views
0
The problem is that the path of the HTML selector and xpath.

Corresponding page: http://lin.popall.com/bbs.htm?code=talking&keyfield=&key=&page=1 Copy the CSS SELECTOR of the table to bring only the part that contains the posts on the free bulletin ...


2 answers
145 views
0
Q: Making white noise in Python

I want to put white noise in the function I made.For example, def black_box_functon(x,y): return -x ** 2 - (y - 1) ** 2 + 1I made this function, and I want to return it by adding white noise.What shou...

2 years ago

1 answers
116 views
0
Python 3 MySQL connection failed

import pymysqlimport MySQLdb'''db = MySQLdb.connect(host=13.209.68.158, # your host, usually localhost user=Woo, # your username passwd=cbnuroot123, # your password db=CBNU) # name of the d...

2 years ago

1 answers
113 views
0
I want to know how to test algorithms with Python

Hello, I'm a new student who started studying algorithms.I'm solving the Baekjun algorithm problem with Python.When there was no input value or one line, I used to test it by floating it on the consol...


1 answers
112 views
0
python3 int(input())

import randomx=random.randint(1,100)y=random.randint(1,100)z=x-ya=int(input(x, '-',y, '='))if a==z: print()' is correct.')else: print ('wrong')I'm learning Python basics.I wrote the code above, but I ...

2 years ago

3 answers
124 views
0
Existing Ethereum Price - Coinbase API

Using the Python coinbase API, functions such as -- get_buy_price, get_sell_price, get_spot_price, and get_historical_data seem to return only bitcoin prices. Is there any way to know the Ethereum pri...


1 answers
105 views
0
Is there a difference in the output depending on the function ()?

>>> from platform import system, release>>> print(system, release)<function system at 0x00000126E1EC9280> <function release at 0x00000126E1EC93A0>>>> print(syste...

2 years ago

1 answers
127 views
0
[Python] To extract the next string of a particular string

String retrieved from Excel.Member||*NAYEON||*0.00||*0000036$$Member||*JEONGYEON||*0.00||*0000037$$Member||*MOMO||*0.00||*0000038$$Member||*SANA||*0.00||*0000039$$Member||*JIHYO||*0.00||*0000040$$Memb...

2 years ago

1 answers
147 views
0
Python Beautiful Soup Web Page Option Information Crawling

HTML information.<div class=:selectScroll> <div class =wrap> <div class =box id =option_all_view_area> <a class = optionLine name =opt_select optprdno=7042309496> <div cla...

- 1 - »

© 2024 OneMinuteCode. All rights reserved.