supperman = ["Jack马","星星","赵日天"] for item in enumerate(supperman): if item == "星星": print(item) break else: print("查无此人")
作业:找出超人“星星”,并打印姓名,否则打印“查无此人”
supperman = ["Jack马","星星","赵日天"] for item in enumerate(supperman): if item == "星星": print(item) break else: print("查无此人")