python3 tag

651 questions


1 answers
283 views
0
Error when trying to run TSSfinder

The TSSfinder does not work, so I rewrite it myself, but the error does not stop.I finally got around here.Please let me know what's wrong with the script below.The errors seen in this script are as f...

1 weeks ago

2 answers
265 views
0
How to Remove Unnecessary Tags in BeautifulSoup

<LI>·<a> to retrieve the string you want to retrieve from the HTML code described below, but <LI>·<a> also has <time>·<span> and so on.Please let me know.Example: &...


1 answers
302 views
0
Is there a way to receive the value of the form without using cgi.FieldStorage() in Python?

We are passing (page transition) values in Python's CGI.We are currently retrieving the value in cgi.FieldStorage().However, since Python 3.11, cgi has been deprecated, and since 3.13, it has been dep...

1 weeks ago

2 answers
234 views
0
Code Execution Causes Undefined btn_click Error

If you enter the following code in Python 3, you get the error btn_click is not defined, and btn2_click is not defined in the same way.Where should I change to work without errors?import tkinter# scre...

1 weeks ago

2 answers
311 views
0
Code Execution Causes Undefined btn_click Error

If you enter the following code in Python 3, you get the error btn_click is not defined, and btn2_click is not defined in the same way.Where should I change to work without errors?import tkinter# scre...

1 weeks ago

1 answers
335 views
0
CSVization of python text files (logs)

I tried to get a log of the equipment and convert it into CSV, but there are about 1 million lines of logs, and the VBA cannot display all of them and cannot process them.Therefore, I am trying to con...

1 weeks ago

2 answers
179 views
0
Which object is the standard Python feature that allows you to freely set properties?

Could you tell me how Python's standard feature allows you to set properties under any name?I would like to do the following, but do I have to create my own class?I'd like to know another smart way.cl...

2 weeks ago

1 answers
311 views
0
It's about extracting elements using containers.

For document in xml, if the text value is article-id_pmid, we have created a program to extract if the paragraph in the passage contains first.As for the paragraph extraction, I used containers, but I...

3 weeks ago

2 answers
270 views
0
Expected b'battery_v'but got b'battery:...' error communicating with Pisgar3

The raspberry pie is equipped with a UPS called pisugar3 to obtain voltage and battery capacity from pisugar every 5 seconds.It works at the beginning of the program, but after about 20 minutes of mov...


1 answers
247 views
0
filter() function

# General functiondef even(x): if x % 2 == 0: return x# Listtwo = [i for i in range(10)]# filter() + general functionlist(filter(even, two))The expected output of is [0, 2, 4, 6, 8]The actual output ...

3 weeks ago
- 1 - »

© 2022 OneMinuteCode. All rights reserved.