0
首先,我是编码新手。 要练习基本的字符串和命令我正在做一个基于决策的小游戏,你知道经典的左或右类型的东西。问题是我不知道退出命令。我已经写到如果你做出某些选择你死了,当你死的时候,我想把它写到脚本引导你的地方。有点像在Python中退出脚本命令
print('You have died..exit?')
user_choice = input('Okay')
if user_choice == 'Okay':
(here is where i would put the exit code)
else:
(Exit code again...no getting out of it)
请帮忙!我今天刚刚开始编码...>。 <