- 去掉最后n个元素
line = line[:len(line)-n]
- 两种遍历方式
for i:=0;i<);++{ // ...=line[i]} index,value:=range line {//...}
- 二维数组中查询某个值是否存在
found falseLABEL: row range arr colum range arr[row]{if arr][colum]==V found truebreak LABEL }}}
line = line[:len(line)-n]
for i:=0;i<);++{ // ...=line[i]} index,value:=range line {//...}
found falseLABEL: row range arr colum range arr[row]{if arr][colum]==V found truebreak LABEL }}}