在python中,一个空列表的计算结果为False。
if not c: print "The list is empty"else: print "The list is not empty"
上一篇 使用reducebykey时出错:int对象不可订阅
下一篇 测试成功,仍可追溯
版权所有 (c)2021-2022 MSHXW.COM
ICP备案号:晋ICP备2021003244-6号