这是我的密码
import time
print("------------------------------------------")
print(" Welcome to Senpai Quest")
print('------------------------------------------')
time.sleep(3)
print("")
print('You have English next, there is a test. If you hit yes .you go to
class and you get +1 charisma and Knowledge.')
print("")
print('If you hit no, you will skip class and get +1 Courage and +1 risk.')
ans1=str(input('Do you Take the english test? [Y/N]'))
if ans1== ['y']:
print("It works")
else:
print("Woo Hoo!")
当它问问题的时候,对于“y”,它直接进入“woo-hoo!”。我想它做的是打印“它的作品”,但如果你键入n它只是去胡呼。请帮忙
我建议使用distutil的^{} 来覆盖所有情况
这应该起作用:
相关问题 更多 >
编程相关推荐