python用海伦公式求三角形面积运行不了

img


python用海伦公式求三角形面积运行不了是什么原因嘛,谢谢了!

多了一句话, 可以考虑 加句控制结果的小数位。

s = round(s,2) 

img