06-pop

06-pop

语法讲解 今天学: Python 集合 set 基础与综合 s={1,2,3} s.pop() print(len(s)) 小练习 运行下面代码后输出是什么? s={1,2,3} s.pop(

阅读更多 →
05-discard 不报错

05-discard 不报错

语法讲解 今天学: Python 集合 set 基础与综合 s={1,2} s.discard(5) print(s) 小练习 运行下面代码后输出是什么? s={1,2} s.discard(

阅读更多 →
04-remove

04-remove

语法讲解 今天学: Python 集合 set 基础与综合 s={1,2,3} s.remove(2) print(s) 小练习 运行下面代码后输出是什么? s={1,2,3} s.remov

阅读更多 →
03-add

03-add

语法讲解 今天学: Python 集合 set 基础与综合 s={1,2} s.add(3) print(s) 小练习 运行下面代码后输出是什么? s={1,2} s.add(3) print

阅读更多 →
02-去重特性

02-去重特性

语法讲解 今天学: Python 集合 set 基础与综合 s={1,1,2,2} print(s) 小练习 运行下面代码后输出是什么? s={1,1,2,2} print(s) 提交

阅读更多 →
01-创建集合

01-创建集合

语法讲解 今天学: Python 集合 set 基础与综合 s={1,2,3} print(s) 小练习 运行下面代码后输出是什么? s={1,2,3} print(s) 提交要求:

阅读更多 →
30-index

30-index

语法讲解 今天学: Python 列表 list 基础与综合 a=[1,2,3] print(a.index(2)) 小练习 运行下面代码后输出是什么? a=[1,2,3] print(a.i

阅读更多 →
29-count

29-count

语法讲解 今天学: Python 列表 list 基础与综合 a=[1,2,2,3] print(a.count(2)) 小练习 运行下面代码后输出是什么? a=[1,2,2,3] print

阅读更多 →
28-sorted

28-sorted

语法讲解 今天学: Python 列表 list 基础与综合 a=[3,2,1] print(sorted(a)) 小练习 运行下面代码后输出是什么? a=[3,2,1] print(sort

阅读更多 →
27-sort 返回值

27-sort 返回值

语法讲解 今天学: Python 列表 list 基础与综合 a=[3,2,1] print(a.sort()) 小练习 运行下面代码后输出是什么? a=[3,2,1] print(a.sor

阅读更多 →