Python3

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'>
上一篇下一篇

猜你喜欢

热点阅读