集合
tuple
tup = ('python', 2.7, 78)
for i in tup:
print(i)
dictionary
dictionary = {}
dictionary['001'] = 'phthon1.0'
dictionary['002'] = 'python2.7'
dictionary['003'] = 'python3.6'
for key in dictionary:
print(key, dictionary[key])
# 字典中的key是乱序的,就是说插入的顺序不一致
set
set集合 = set(['python', 'python2.7', 'python3.7', 'python'])
for item in set集合:
print(item)
# 这个集合会去重,
# 顺序也是不一样的