标签:
#链式赋值 m=n=[1,2,3] m[0]=2 print(m,n) #m,n都改变了 x=y=‘xxx‘ y=‘yyy‘ print(x,y) #只有y 改变 #序列解包 x,y,z=1,2,3 print(x,y,z) try: x,y,z=1,2 #error x,y,z=1,2,3,4 #error except Exception as e: print(e)
assign.py
原文地址:http://www.cnblogs.com/feifeidxl/p/5617883.html