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'>
本文标题:Data structure
本文链接:https://www.haomeiwen.com/subject/oewfqctx.html
网友评论