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