v = (1,2,3,) //元组
v(1,2,3) //方法
s = v[0];
s = v[0:2]
s = tuple(v);
li = [1.2,2,3]
s = tuple(1i);
s = list(tu);
info = { "name":"李四", "age" : 18 }
info[‘name‘] //取出李四
del info[‘name‘]
for s in info: print(s); //s 默认是字典key值 for k,v in info: print(k,v); //字典的键和值
dic.update({‘ke1‘:123,‘ke2‘:243}); dic.update(ke1=123,ke2=234);
10)items():以列表返回可遍历的(键, 值) 元组数组。
原文:https://www.cnblogs.com/PCBullprogrammer/p/10200858.html