Python 計算三角形的面積

Python 計算三角形的面積 如下實例爲經過用戶輸入三角形三邊長度,並計算三角形的面積: # -*- coding: UTF-8 -*- # Filename : test.py a = float(input('輸入三角形第一邊長: ')) b = float(input('輸入三角形第二邊長: ')) c = float(input('輸入三角形第三邊長: ')) # 計算半周長 s =
相關文章
相關標籤/搜索