主页
Python
Python any() 函数
demo_ref_any_tuple
运行 ❯
×
更改方向
保存代码
更改主题
mytuple = (0, 1, False) x = any(mytuple) print(x) # Returns True because the second item is True
True