- 博客(3)
- 收藏
- 关注
原创 if-statement
if expression: statement elif expression: statement else: statement ''' Boolean True/False ''' ''' keyword: in/not in/and/or ''' if list in lists and list not in listss: statemen...
2019-03-17 15:08:58
290
原创 tuple
tuples=(20,30) tuples[0]=20 ''' tuple object does not support item assignment ''' tuples=(20,20) for t in tuples: print(t) Items in a tuple variable can not be changed.
2019-03-17 14:42:45
130
原创 list
列表 lists=['a','b','c'] lists=['a',1,44,'aa'] print(lists) print(lists[0]) print(lists[-1]) print(lists[-2]) lists.append('a') index=0 lists.insert(index,'value') del lists[index] lists.po...
2019-03-17 14:33:03
139
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人