一个python问题
import string
alphas = string.letters + '_'
num = string.digits
print ('welcome version 1.0')
print ('testee must at least two chars')
myInput = input('Identify to test?')
if len(myInput) > 1:
if myInput [0] not in alphas :
print '''("invalid: first symbol must be
alphas")'''
else :
for otherChar in myInput[1:]:
if otherChar not in alphas + num :
print '''("invalid: remaining
symbol must be alphanumic")'''
break
else :
print ("okay as an identifier")
出现这样的错误
SyntaxError: multiple statements found while compiling a single statement
求大神帮助