各位大大好!
有個關於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。
求各位大大幫忙,非常感謝!