各位大大好!
有个关于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。
求各位大大帮忙,非常感谢!