主页
Python
Python 元组
demo_tuple_in
运行 ❯
×
更改方向
保存代码
更改主题
thistuple = ("apple", "banana", "cherry") if "apple" in thistuple: print("Yes, 'apple' is in the fruits tuple")
Yes, 'apple' is in the fruits tuple