
本文共 4206 字,大约阅读时间需要 14 分钟。
������������
���������
������������Python������������������������������������������������������������������������
���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������
���������������������������������������������������������������������������������������������������������������������������������[������:������:������]���������������������������������������������������������������������������������������������������������������������������������������������������������
������������������"name = 'abcdef'"���������������������������������������������������������������������������������������������������������
# str[���������������������:���������������������:������]s = 'hello world's[:3] # ������: 'hel's[3:8] # ������: 'lo w's[::2] # ������: 'hlow'
������������������������
������
���������List������������������������������������������������������������������������������������������������������������������������������������len()��������������������������������������������������������������������������������� len(list) - 1���
���������������
- append()���������������������������������
- extend()���������������������������������������������
- insert(index, object)���������������������������������
- del������������������������������
- pop()������������������������������������
- remove()������������������������������������
- in������������������������������
- not in���������������������������
- index()���find()���������������������������
- sort()���������������������������������reverse���������������������
- reverse()������������������
���������������������������������������������������������������������������������������������������
������
���������Tuple������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������
������
���������Dictionary������������������������������������������������������������������������dictionary���������������������������������������������������
������������������
���������������
- del���������������������
- pop()������������������������������������������������
- update()���������������������������
������������������������������������������������������������������������������������������
���������������������������������������������������������������������������������������������������������������������������������������������������������������������
发表评论
最新留言
关于作者
