W3School TIY Editor
W3School 在线教程
改变方向
暗黑模式
python_ref_keyword_in_1.py:
fruits = ["apple", "banana", "cherry"] if "banana" in fruits: print("yes")
x
fruits
=
[
"apple"
,
"banana"
,
"cherry"
]
if
"banana"
in
fruits
:
print
(
"yes"
)