可以参考:
a = int(input("请输入第一数字:"))
b = int(input("请输入第二数字:"))
c = int(input("请输入第三数字:"))
if a>0 or b>0 or c>0 or a+b>c or a+c>b or b+c>a :
if a==b and b==c :
print("等腰三角形")
elif a==b and b==c and c==d :
print("等边三角形")
elif a*a+b*b==c*c and a*a+c*c==b*b and b*b+c*c==a*a:
print("直角三角形")
else:
print("普通三角形") 1
else:
print("不是三角形")
a = int(input())
b = int(input())
c = int(input())
a, b, c = sorted([a,b,c]) # a最短边,c最长边
if a>0 and a+b>c:
if a**2+b**2==c**2:
print('直角三角形')
elif a**2+b**2>c**2:
print('锐角三角形')
else:
print('钝角三角形')
else:
print('不构成三角形')