python判断某个元素是否在列表中时间:2025-01-28 22:46:07in和not in: qwe =[1,2,3,4,5] if 2 in qwe: print('factor in the list!') else: print('not found')