else 语句不起作用。什么都没有输入时如何关闭循环?关于如何处理的建议?
def main():
print "~*~*~*~*~*~ Timbuktu Archery Contest ~*~*~*~*~*~"
archerList = [] #list
timeList = [] #list2
name = raw_input ("Enter contestants first name: ")
s = str(name)
archerList.append(name)
while name > 0:
time = raw_input ("Enter time (in milliseconds) for %s: " % s)
timeList.append(time)
name = raw_input ("Enter contestants first name: ")
s = str(name)
archerList.append(name)
else:
name == ""
print "Slowest archer was " , min(timeList)
print "Fastest archer was " , max(timeList)