📅  最后修改于: 2022-03-11 14:45:27.292000             🧑  作者: Mango
answer = input("Enter yes or no: ")
if answer == "yes":
# Do this.
elif answer == "no":
# Do that.
else:
print("Please enter yes or no.")