会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
风起
ATcys
博客园
首页
新随笔
联系
订阅
管理
2018年11月16日
python中is判断比较地址
摘要: m = id(input()) n = id(True) print(m,n) print(m is True) if(m): print('True') else: print('False') 可知True值是有地址的 若用m is True的方式比较将返回False
阅读全文
posted @ 2018-11-16 20:02 予或
阅读(429)
评论(0)
推荐(0)
编辑