我是靠谱客的博主 昏睡篮球,这篇文章主要介绍python中的is ,is not,现在分享给大家,希望可以做个参考。

a='324'
b='324'
c='123'
print a is b
#output True
print a is c
#output False

print a is not ba
#output False
print a is not c
#output Truea

最后

以上就是昏睡篮球最近收集整理的关于python中的is ,is not的全部内容,更多相关python中的is内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(118)

评论列表共有 0 条评论

立即
投稿
返回
顶部