[問題] 找直角三角形的值已刪文
各位大大好!
有個關於Python的程式作業問題,問題如下:
Assume that there is a right triangle which has three integer sides and the th
ree sides of course satisfy the Pythagoras theorem.
Please use Python to write function(s) to find out all side-sets including sid
e1,side2,and the hypotenuse(use list or tuple or dict to store the data) and a
ll the sides are no larger than 500.
渣翻譯:用函數求直角三角形的邊(不大於500),邊的值需要符合畢氏定理(直角邊的
平方和需等於斜邊長的平方),存值的方式可以用list,tuple,dict。
求各位大大幫忙,非常感謝!
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 42.77.173.141 (臺灣)
※ 文章網址: https://www.ptt.cc/bbs/Python/M.1575193417.A.FB7.html
→
12/01 17:56,
5年前
, 1F
12/01 17:56, 1F
推
12/01 18:05,
5年前
, 2F
12/01 18:05, 2F
噓
12/01 18:54,
5年前
, 3F
12/01 18:54, 3F
推
12/01 18:59,
5年前
, 4F
12/01 18:59, 4F
→
12/01 18:59,
5年前
, 5F
12/01 18:59, 5F
推
12/01 19:01,
5年前
, 6F
12/01 19:01, 6F
→
12/01 22:02,
5年前
, 7F
12/01 22:02, 7F
→
12/01 22:02,
5年前
, 8F
12/01 22:02, 8F
→
12/01 22:05,
5年前
, 9F
12/01 22:05, 9F
推
12/02 02:17,
5年前
, 10F
12/02 02:17, 10F
Python 近期熱門文章
PTT數位生活區 即時熱門文章