代码拉取完成,页面将自动刷新
#python dict字典 dict的字典,使用键值对处理
#list列表
name1=['m','b','t']
name2={"a":'this is test',"n":"test"}
print (name1)
print(name2['a'])
#和list比较
#查找喝插入的速度极快
#需要占用大量的内存,内存浪费多
#dist的key必须是不可变的对象
#set 也是一组key的集合 但是不存储value
s=set([1,2,3])
print(s)
#可以通过add 加入set里面
s.add(6)
print(s)
#通过remove 删除元素
s.remove(2)
print(s)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。