#字典dict与集合set
#{key:valuel,key:valuel,key:valuel}
#key不能重复
a={1,2,3}
b=[1,2,3]
c={1:1,2:2,3:3}
type({1,2,3})#set
type([1,2,3])#list
type({1:1,2:2,3:3})#dict
name={'x':'xia','c':'chuan','d':'dong'}
d={1:'xia','1':'chuan','d':'dong'}#1and'1'是不同的key
stu={'学院1':'学院1','学院2':{'专业1':'专业1','专\
业2':{1:'class1',2:'class2'}},'学院3':'学院3'}
##Python基本数据类型
a={'数字':{'整形':'int','浮点型':'fl\
oat','布尔型':'bool','复数':'complex'},'组':{'序\
列':{'字符串':'str','列表':'list','元组':'tuple'},'集\
合':{'set':'无序,没有索引,不能切片'},'字典':{'dict':\
'key:value'}}}