关于真假

5年以前  |  阅读数:453 次  |  编程语言:Python 
>>> bool(0)
False
>>> bool(False)
False
>>> bool(None)
False
>>> bool([])
False
>>> bool([False])
True
>>> bool([0,0,0])
True

Copyright© 2013-2020

All Rights Reserved 京ICP备2023019179号-8