这样可以吗?
age=17
if age>=18:
print('adult')
print('your age is {}'.format(age))
else:
print('teenager')
print('your age is {}'.format(age))
age=17
if age>=18:
print('adult')
print('your age is {}'.format(age))
else:
print('teenager')
print('your age is {}'.format(age))
2022-04-23
举报