python课程第三周小结_python周报第三周
1.set 集合1.set 方法解析1.定义一个sets1 = "caesary"set1=set(s1)print(set1)l1= [1,2,3,4]set2=set(l1)print(set2)t1= (1,1,1,2,3)set3=set(t1)print(set3)执行结果如下{‘y‘, ‘e‘, ‘s‘, ‘r‘, ‘c‘, ‘a‘}{1, 2, 3, 4}{1, 2, 3}总结:se...