无法找到我的代码在python中重复的原因

时间:2017-05-10 23:19:08

标签: python python-2.7

这段代码不断重复,我无法找出原因。我正在使用python 2.7。

def source():
    print "What is the source of the emails that you want to sort?"
    start_source = raw_input("> ")
    print "The source is: \"" + start_source + "\" is this correct? Enter yes/no/y/n"
    answer = raw_input("> ")
    if answer == "no" or "n":
        source()
    return start_source
source()

0 个答案:

没有答案