convert tag

7 questions


1 answers
90 views
0
I'd like to convert the list into a collection

list2007 = []for i in range(len(res2007)): a = res2007[i][0] list2007.append(a)set2007 = set([list2007])TypeError Traceback (most recent call last) in ()----> 1 set2007 = set([list2007])TypeEr...

2 years ago

1 answers
160 views
0
How to change Long to Integer

How can I change Long to Integer?

2 years ago

1 answers
97 views
0
Convert time.structure_time object to datetime object

In the code I write, the first library receives time.structure_time and the second library receives datetime as a factor.How do I replace the time.structure_time object with the datetime object?

2 years ago

1 answers
107 views
0
Aski Code Case Conversion Problem

After receiving a string in an array without using a conditional statement, you should create a code that converts uppercase letters to lowercase letters and lowercase letters to uppercase letters. I ...

2 years ago

1 answers
86 views
0
Python Unicode conversion (Spanish?) Please help me

{cc: st,name: S\u00e3o Tom\u00e9 and Pr\u00edncipe}Like the dictionary above, I got the information from a site and it came out like \u00e3 When I looked on the internet,It sounds like Spanish, but ho...

2 years ago

1 answers
142 views
0
How do I change a string like "0/0" to a date form?

I'd like to change strings such as January 20th to a date form, but I think it'll be difficult to use strptime() because the form has no zeros in front of it like July 4th.Can't we simply change strin...


1 answers
132 views
0
Python Integer Byte Code Conversion Question

import structtest_struct = struct.pack('B', 34)print(test_tmp : , test_struct)test_bytes = bytes([34])print(test convert bytes : , test_bytes)>>>test_tmp : b''test convert bytes : b''When the...

2 years ago

© 2024 OneMinuteCode. All rights reserved.