Python 体重判断程序:输入体重,判断是否偏瘦、中等或肥胖
weight = input('请输入体重:')
if not weight.isdigit() or int(weight) > 80: print('非法输入') elif int(weight) <= 80: print('偏瘦') elif int(weight) <= 120: print('中等') else: print('肥胖')
原文地址: https://www.cveoy.top/t/topic/oFdA 著作权归作者所有。请勿转载和采集!