first try

This commit is contained in:
pprmint 2017-10-05 16:19:31 +08:00
parent 9bb0bb43e4
commit 12802de823
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ title: Python
list[:-1] # return all but the last element list[:-1] # return all but the last element
list[i] = val list[i] = val
list[i:j] = otherlist # insert otherlist between ith and jth element list[i:j] = otherlist # replace ith to jth element with otherlist
del list[i:j] del list[i:j]
list.append(item) list.append(item)