摘要: # 内置函数 print(abs(-1)) # abs 绝对值 # 0, None, [''] 为False, 其余都为True print(all([1, 2, 3, '4'])) # all 序列全真,返回True print(any([1, 0])) # any 序列中只要有一个真,则返回Tr 阅读全文
posted @ 2021-04-15 18:46 关于段主任的一切 阅读(61) 评论(0) 推荐(0) 编辑