Python笔记1

1..insert()
插入
2..remove()
移除
3..pop()
后进先出
4..clear()
清空
5..index(x[, start[, end]])
返回索引
6..count()
返回出现次数
7..sort(*, key=None, reverse=False)
排序
8..reverse()
倒序
9..copy()
返回拷贝
10..deque()[“”,””]
队列
11.del
删除
12.,
元组
13.{} or set()
集合({}空字典,set()空集合)
14.{”:,”:} or dict([(”,),(”,)]) or dict(=,=)
字典
15..items()
提取字典键或值
16.zip()
多个列表匹配
17.{0}{1}.format(0,1)
斗个内容匹配
18.reversed()
逆循环
19.sorted()
按字母排序
20.in or not in
存在或不存在
21.TypeError
比较对象不合适

Tags:

Add a Comment