【Python】true和false

Python中的truefalse


类型truefalse
bool对象TrueFasle
数字0 数字0
容器非空容器空容器
字符串空串非空字符串
对象None对象None

容器:
指 Python 中的聚合类型,如:set(集合)、dict(字典)、tuple(元组)、list(列表)等

posted @ 2021-04-18 11:47  CloudSir  阅读(38)  评论(0)    收藏  举报