python-3.x tag

16 questions


1 answers
92 views
0
Python Papago translation result utf - Return to string after 8 decode

import osimport sysimport urllib.requesttext = text sample.encQuery = urllib.parse.quote(text)data = query= + encQueryurl = https://openapi.naver.com/v1/papago/detectLangsrequest = urllib.request.Requ...

1 years ago

1 answers
95 views
0
When you click the image URL, the window does not appear on the web and is saved as a file

I'm practicing Python crawl.Originally, when you get the uploaded image address on the site, the Internet Explorer opens and the image opensUsing this, I changed the urllib.request image URL to the de...

2 years ago

1 answers
69 views
0
Transferring Korean directories using Python

Hello, I'm a beginner at Python. We are working on a program that uses Python to import Korean files connected to FTP.An error occurred when we performed it by squeezing it like below.import ftplibimp...

2 years ago

1 answers
115 views
0
Questions about Python exec

In Python, we made a calculation using exec and eval in the for statementlists = [a=1, b=2, c=a+b]returned_list = []for x in lists: exec(x) returned_list.append(eval(x))print(returned_list)If I write ...

2 years ago

1 answers
120 views
0
This is an automated email code. It's Python, it works on a laptop, and the desktop has an error. UnicodeDecodeError in gethostbyaddr

I'm getting an error on my desktop. If you know the reason, please explain.I'm only looking for this for two days, but I'm asking you a question because my learning progress is not progressing.from em...


1 answers
116 views
0
I have a question for Python restrictors.

class PayGildong: def __init__(self): self.day = 25 self.__pay = 1000000 def setPay(self, pay): self.__pay = pay def getPay(self): return self.__paygd = PayGildong()gd.day = 14gd.__pay = 800000pri...

2 years ago
« - 2 -

© 2024 OneMinuteCode. All rights reserved.