我试图制作一个询问您的程序,但是有问题。
name = input("what is your name")
print("hello " + name + " im glad to meet you")
state = input("how are you?")
if state == "sad":
print("im sad to know you're sad")
elif state == "happy":
print("im happy to hear you're happy")
elif state == "fine":
print("im glad to hear you're fine")
elif state == "good":
print("im glad to hear you're good")
elif state == "bad":
print("im sad to hear you're bad")
else:
print("i don't know what that word means")
input("is it " + "bad" " or " + "good?")
if "bad":
print("im sad to hear that")
elif "good":
print("im glad to hear that")
print("bye")