必须掌握

一、数字

int(...)

二、字符串

replace/find/join/startswith/endswith/split/upper/ower/format

三、列表

append/entend/insert

索引、切片、循环

四、元组

索引、切片、循环

一级元素不能修改、增加和删除

五、字典

get/update/keys/values/items

for 循环,索引

in(key)

六、布尔值

bool(...)转换

假:None、""(空字符串)、[](空列表)、()(空元组)、{}(空字典)、0

猜你喜欢

转载自www.cnblogs.com/hechengwei/p/8909480.html
今日推荐