a = 1#普通赋值
b = 1,2,3#元组
c,d,e = "a","bc","de"#多变量赋值
e=f=g=[1,2,3]#链式赋值
print(a,b,c,d,e,f,g)
python变量赋值方法
最新推荐文章于 2024-08-26 17:24:07 发布
a = 1#普通赋值
b = 1,2,3#元组
c,d,e = "a","bc","de"#多变量赋值
e=f=g=[1,2,3]#链式赋值
print(a,b,c,d,e,f,g)