python3 tag

685 questions


1 answers
526 views
0
[python3] Receive Lv.1 report results / Solve problems with approaches and dictionary values

def solution(id_list, report, k): answer = [] Declareddic = {} n = len(id_list) #total number of users for x in id_list: Report dic[x] = [] for i in report: reporter = i.split() #[muzi, frodo] Repor...

2 years ago

1 answers
536 views
0
TypeError of JSON error in python: the JSON object must be str, bytes or byte array

I am thinking of reading and translating PDF and writing it out in Outlook draft.(Use the https://www.cpi-japan.com/services/ PDF file of IELTS Reading Samples at the top of this site)An error occurre...

2 years ago

1 answers
660 views
0
TypeError of JSON error in python: the JSON object must be str, bytes or byte array

I am thinking of reading and translating PDF and writing it out in Outlook draft.(Use the https://www.cpi-japan.com/services/ PDF file of IELTS Reading Samples at the top of this site)An error occurre...

2 years ago

1 answers
586 views
0
AttributeError when retrieving text: 'Page' object has no attribute' getText'

I'm going to read a PDF in Python and convert the text information to Excel.I referred to this site (https://fastclassinfo.com/entry/python_pdf_to_excel/), but the following error message occurred:Att...

2 years ago

1 answers
538 views
0
a function that uses contains() to determine whether Python contains a specific string

For the string item train['name'] in Python, I would like to create a separate item with 1 if it contains a specific string (e.g., aaaa), or 0 if it does not contain it (train['test']).At that time, I...

2 years ago

1 answers
455 views
0
Is PyPy's recursive function specification different from Python's?

Python 3.10.8PyPy 7.3.11 with MSC v.192964bit (AMD64)When answering D question of AtCoder Beginner Contest 236, I encountered a phenomenon in which PyPy and Python have different standard outputs for ...

2 years ago

1 answers
389 views
0
CSV output from one-dimensional array does not yield intended results

Using the CSV module, I export the list to the CSV file with the following two codes (sample-01/02.py), but it does not result in the intended result.I would appreciate it if you could explain the dif...

2 years ago

1 answers
575 views
0
CSV output from one-dimensional array does not yield intended results

Using the CSV module, I export the list to the CSV file with the following two codes (sample-01/02.py), but it does not result in the intended result.I would appreciate it if you could explain the dif...

2 years ago

1 answers
609 views
0
list a monotonically increasing sequence over a range

Is there a way to enumerate a sequence that meets the following conditions?A positive integer column of length N1<=A_1<=A_2<=...=A_N<=M1<=N,M<=10By using the recursive function, I wa...

2 years ago

1 answers
558 views
0
python import error

To manage passwords when logging in with FlaskAs I use werkzeug, I write as follows, but I get an import error.I've been looking into various things today, but I don't know what's wrong.Thank you for ...

2 years ago
« - 2 - »

© 2025 OneMinuteCode. All rights reserved.