用户:
霸道的阿米巴3eG0查看:0 回复:0 评论:0 创建时间:2023-02-11T13:20:46
【作品展示】

【作品介绍】
可以计算你的BMI
【作品源代码】
import time
print('Hello')
time.sleep(1)
t = float(input('请输入你的体重(kg):'))
h = float(input('请输入你的身高(m):'))
BMI = (t / (h * h))
print('你的BMI指数=', BMI)
time.sleep(1)
if (BMI < 18.5):
print('过瘦')
elif (BMI < 24):
print('正常')
elif (BMI < 28):
print('超重')
else:
print('肥胖')
time.sleep(1)
print('谢谢您的使用')
time.sleep(10)
【提示】
部分含有Python第三方库相关内容的作品,在海龟编辑器网页端无法运行哦!如遇到这种情况,可以打开下面的链接,下载海龟编辑器客户端:
https://python.codemao.cn