# x=10 #链式赋值# a=b=c=d=e=f=10# print(a,b,c,d,e,f) #增量赋值 # x=10# y=‘a‘# temp=x# x=y# y=temp# print(x,y) # x,y=y,x# print(x,y) #值的解压# msg=‘hello‘# l=[1,2,3] # a,b,c,d,e=msg# print(a,b,c,d,e) # a,_,_,_,e=msg# a,*_,e=msg# print(a)# print(e) # dic={‘a‘:1,‘b‘:2,‘c‘:3}# x,y,z=dic# print(x,y,z) # x y z d取得是key
时间: 2024-12-21 12:08:33