#encoding=utf-8 import math a=[1,23,4,5,6] print a a[1:1]=[2,3,5] print a a a[1]='a' print a a[1]={1,1,2,3,4} print a #序列的append()方法 a.append({000,3,2,23,4}) a.append([2,2,3,4]) print a # 异常扑捉 try: print 1/0 except Exception as e: print(e) else: prin…