#coding=utf-8
if __name__ == '__main__':
age = 3
if age > 18:
print("adult")
elif age > 6:
print('teenager')
else:
print('baby')
结果:
adult
19
#coding=utf-8
if __name__ == '__main__':
age = 3
if age > 18:
print("adult")
elif age > 6:
print('teenager')
else:
print('baby')
结果:
adult
19