# 1
studentlist=[]
studentlist.append('小明')
# 2
studenttuple=('小明','小张')
# list 是可变的对象,元组 tuple 是不可变的对象!
# 3
studentdict={
'name':'小明',
'age':13,
'sex':'boy'
}
直接说帮你考得了,还要参考
a=[]
a.append('小明')
--------------------------------
a=('小明','小红')
元组不可更改,列表可以
------------------------------------
xiaoming={'姓名':'小明','性别':'男','年龄':'22'}