python求三角形面積

Python第一課 目前正在自學python,上來作點筆記。python 題目:已知三條邊,如何求一個三角形的面積?web 代碼以下:svg import math a=4.0 b=3.0 c=5.0 d=(a+b+c)/2 s=math.sqrt(d*(d-a)*(d-b)*(d-c)) print (s) 改進一下:測試 import math a=float(input("請輸入三角形的邊長
相關文章
相關標籤/搜索