摘要: python中只有0代表False,只有1代表True,注意只有!! if x: print('True') 只要x是非零数值、非空字符串、非空list等,就判断为True,否则为False。 阅读全文
posted @ 2020-05-29 15:43 cptao 阅读(10312) 评论(0) 推荐(0)