Hier mein Code:
Code: Alles auswählen
umwandel_1 = "4534" # string
print type(umwandel_1)
int(umwandel_1)
print type(umwandel_1)
'''
>>> <type 'str'>
>>> <type 'str'>
'''
Code: Alles auswählen
umwandel_1 = "4534" # string
print type(umwandel_1)
int(umwandel_1)
print type(umwandel_1)
'''
>>> <type 'str'>
>>> <type 'str'>
'''
Code: Alles auswählen
txt = "4711"
value = int(txt)
print type(value)