Discuss / Python / PYCHARM运行后,显示 请输入身高(m),请问应该在哪里输入数值?谢谢

PYCHARM运行后,显示 请输入身高(m),请问应该在哪里输入数值?谢谢

Topic source

独具一格5

#1 Created at ... [Delete] [Delete and Lock User]

h=input('请输入身高(m):') w=input('请输入体重(kg):') height=float(h) weight=float(w) bmi=weight/(height**2) if bmi<18.5: print('过轻') elif bmi<=25: print('正常') elif bmi<=28: print('过重') elif bmi<=32: print('肥胖') else: print('严重肥胖')

鼠标点击请输入身高(m):右边,显示光标就可以输入了

独具一格5

#3 Created at ... [Delete] [Delete and Lock User]

谢谢!


  • 1

Reply