所以,我有这样的事情:
def pickClass():
print('What class are you? FIGHTER, MAGE, or THIEF?')
classChoice = raw_input()
if classChoice == 'FIGHTER':
print('You are a mighty warrior. Are you sure? YES or NO.')
_confirm = raw_input()
if _confirm == 'YES':
print('So be it.')
elif _confirm == 'NO':
pickClass()
else:
print('YES or NO only!')
#go back to '_confirm = raw_input()'
我被卡住的部分在最后——如何在不再次遍历整个函数的情况下进入代码的特定部分?
(我知道那张印刷品有点多余,但无论如何,maaaaan)