我试图找到可用的方法,但找不到。没有contains。我应该使用index?我只想知道该项目是否存在,不需要它的索引。
contains
index
You use in.
in
if element in thetuple: #whatever you want to do.