我有一个 raw_function 看起来像: number = raw_input('number (empty to finish):')
if len(number) == 0:
print
print
print 'finished'
print
print
return def()
else:
pass
while True:
try:
column2 = int(raw_input('Enter column: '))
break
except ValueError:
print 'You did not supply an integer. Please try again. '
当我回答完我的第二个 raw_input 后,我想回到第一个 raw_input。我怎样才能做到这一点?
提前致谢。