list=["a","b","c"]
for i in list:
if i=="a":
print("哈哈")
else if i=="b":
print("喜喜")
else:
print("嘿嘿")
就类似于以上,不进if判断