import math a=float(input("请输入直角边1的长度:")) b=float(input("清输入直角边2的长度:")) c=math.sqrt(a*a+b*b) print("斜边长为:",c)