convert tag

7 questions


1 answers
78 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...

1 years ago

1 answers
140 views
0
How to change Long to Integer

How can I change Long to Integer?

1 years ago

1 answers
87 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?

1 years ago

1 answers
92 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 ...

1 years ago

1 answers
77 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...

1 years ago

1 answers
128 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
114 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...

1 years ago

© 2024 OneMinuteCode. All rights reserved.