摘要:
1》set集合:是一个无序且不重复的元素集合;访问速度快,解决了重复的问题; s2 = set(["che","liu","haha"]) add():添加元素; difference():将前一个集合与后者的不同建立为一个新的集合;没有改变当前集合,生成了新的集合; difference_upda 阅读全文
摘要:
1》变量: 2》条件判断与缩进: sex = raw_input("Please input your gender:") if sex == "girl": print ("I would like to have a little monker with jj!") elif sex == "m 阅读全文