a=input("press any one char ")
print len(a)
if len(a)<2:
print "your press is:"+str(a)+" ."
print "your press "+str(a)+" ascii is "+str(ord(a))+" ."
else:
print "your press is wrong."
为什么else后面的语句不能执行?求大神指教
a=input("press any one char ")
print len(a)
if len(a)<2:
print "your press is:"+str(a)+" ."
print "your press "+str(a)+" ascii is "+str(ord(a))+" ."
else:
print "your press is wrong."
为什么else后面的语句不能执行?求大神指教