06-pop
语法讲解 今天学: Python 集合 set 基础与综合 s={1,2,3} s.pop() print(len(s)) 小练习 运行下面代码后输出是什么? s={1,2,3} s.pop(
05-discard 不报错
语法讲解 今天学: Python 集合 set 基础与综合 s={1,2} s.discard(5) print(s) 小练习 运行下面代码后输出是什么? s={1,2} s.discard(
04-remove
语法讲解 今天学: Python 集合 set 基础与综合 s={1,2,3} s.remove(2) print(s) 小练习 运行下面代码后输出是什么? s={1,2,3} s.remov
03-add
语法讲解 今天学: Python 集合 set 基础与综合 s={1,2} s.add(3) print(s) 小练习 运行下面代码后输出是什么? s={1,2} s.add(3) print
02-去重特性
语法讲解 今天学: Python 集合 set 基础与综合 s={1,1,2,2} print(s) 小练习 运行下面代码后输出是什么? s={1,1,2,2} print(s) 提交
01-创建集合
语法讲解 今天学: Python 集合 set 基础与综合 s={1,2,3} print(s) 小练习 运行下面代码后输出是什么? s={1,2,3} print(s) 提交要求:
30-index
语法讲解 今天学: Python 列表 list 基础与综合 a=[1,2,3] print(a.index(2)) 小练习 运行下面代码后输出是什么? a=[1,2,3] print(a.i
29-count
语法讲解 今天学: Python 列表 list 基础与综合 a=[1,2,2,3] print(a.count(2)) 小练习 运行下面代码后输出是什么? a=[1,2,2,3] print
28-sorted
语法讲解 今天学: Python 列表 list 基础与综合 a=[3,2,1] print(sorted(a)) 小练习 运行下面代码后输出是什么? a=[3,2,1] print(sort
27-sort 返回值
语法讲解 今天学: Python 列表 list 基础与综合 a=[3,2,1] print(a.sort()) 小练习 运行下面代码后输出是什么? a=[3,2,1] print(a.sor