- list
list是一种有序的集合,可以随时添加和删除其中的元素。
len(list) : 统计list中元素个数
list.pop(): 删除list中最后一个元素
list.pop(i) : 删除任意一个index元素
list.insert(i,'xxx') : 任意index插入元素
- tuple
tuple一旦初始化就不能修改
tuple只有一个元素时要写 t = (1,)
continue用于跳出当前循环
break用于跳出本次循环
Displays the changes in this historical version, green text indicates the content added; red strikethrough text indicates the content deleted.