Data structure
2019-06-18 本文已影响0人
JaedenKil
a = [1, 2, 3]
print(type(a))
b = (1, 2, 3)
print(type(b))
c = {1, 2, 3}
print(type(c))
d = {"name": "Jack", "age": 12}
print(type(d))
<class 'list'>
<class 'tuple'>
<class 'set'>
<class 'dict'>
a = [1, 2, 3]
print(type(a))
b = (1, 2, 3)
print(type(b))
c = {1, 2, 3}
print(type(c))
d = {"name": "Jack", "age": 12}
print(type(d))
<class 'list'>
<class 'tuple'>
<class 'set'>
<class 'dict'>