目录

* 一、链式赋值 <https://www.cnblogs.com/nickchen121/p/11069978.html#一链式赋值>
* 二、交叉赋值 <https://www.cnblogs.com/nickchen121/p/11069978.html#二交叉赋值>
一、链式赋值
a = 10 b = 10 c = 10 d = 10 print(f'a:{a}, b:{b}, c:{c}, d:{d}') a:10, b:10,
c:10, d:10 a = b = c = d = 10 print(f'a:{a}, b:{b}, c:{c}, d:{d}') a:10, b:10,
c:10, d:10
二、交叉赋值
x = 100 y = 200 temp = x x = y y = temp print(f'x:{x}') print(f'y:{y}') x:200
y:100 x, y = y, x print(f'x:{x}') print(f'y:{y}') x:100 y:200

友情链接
KaDraw流程图
API参考文档
OK工具箱
云服务器优惠
阿里云优惠券
腾讯云优惠券
华为云优惠券
站点信息
问题反馈
邮箱:[email protected]
QQ群:637538335
关注微信