会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
丹枫无迹的博客
——公号:码农升级
博客园
首页
新随笔
联系
订阅
管理
2019年4月15日
【Python】if 后怎么就可以跟对象?变量交换写法是语法糖吗?
摘要: 其他语言中,if 后都是跟条件表达式,为什么 Python 中可以跟任意对象?交换变量 b, a = a, b 为什么可以这么写?
阅读全文
posted @ 2019-04-15 11:39 丹枫无迹
阅读(1851)
评论(0)
推荐(2)
编辑
公告