from sys import exit
def answer():
answer = raw_input("> ")
if answer == "Yes" or answer == "yes":
#going to next
joint()
elif answer == "No" or answer == "no":
print "You still have something, I know..."
again()
else:
fubar()
def again():
again = raw_input("> ")
if again == "Yes" or again == "yes":
#going to next
joint()
elif again == "No" or again == "no":
print "You still have something, I know..."
else:
fubar()
def fuck():
print "Fubar'd!"
def joint():
print "To be continue..."
def question():
print "Hi duuuude..."
raw_input("To say 'Hi' press Enter")
print "Can you help me?"
answer()
question()
嗨,你能幫我嗎?當我回答「否」時,我試圖重複「答案」功能。我想逃避功能「再次」...還有一種方法來逃避「答案==」是「或答案==」是「:」所以不管我寫大寫或小寫字母來接受答案,而不是像小菜一樣寫「是」或「是」?重複功能
是什麼阻止你用'答案'試()'替換()'在' elif'部分? –