Python 判断年龄并输出不同字符串
定义一个整数变量 age
age = 25
判断 age 的值,并输出对应的字符串
if age < 18: print('未成年人') elif age >= 18 and age < 60: print('成年人') else: print('老年人')
原文地址: https://www.cveoy.top/t/topic/fvXd 著作权归作者所有。请勿转载和采集!
安全问答是一个知识全球问答,包含丰富的问答知识
age = 25
if age < 18: print('未成年人') elif age >= 18 and age < 60: print('成年人') else: print('老年人')
原文地址: https://www.cveoy.top/t/topic/fvXd 著作权归作者所有。请勿转载和采集!