摘要:
# 反转 reverse# l=['lili','asdf','qwer','80000']# l.reverse()# print(l) # ['80000', 'qwer', 'asdf', 'lili']# 排序 sort# l=[1,3,5,7,2,4]# l.sort()# print(l 阅读全文
摘要:
# for i in range(0,10): # 结果是0-9,顾头不顾尾# print(i)# for i in range(0,10,2): # 结果是0,2,4,6,8,步长为2# print(i)# msg='hello world'# for i in range(0,len(msg)) 阅读全文