变量没有定义:
if age >= 18:
print ('adult')
print ('END')
会导致:NameError: name ‘age’ is not defined.
改正:
age = 20
if age >= 18:
print
变量没有定义:
if age >= 18:
print ('adult')
print ('END')
会导致:NameError: name ‘age’ is not defined.
改正:
age = 20
if age >= 18:
print