请问这个该要怎么写呢

img


a = float(input("请输入三角形的边A:"))
b = float(input("请输入三角形的边B:"))
c = float(input("请输入三角形的边C:"))
print("三角形的三边分别为:{:.1f},{:.1f},{:.1f}".format(a, b, c))
if a<0 or b<0 or c<0:
    print("边长不可能为负数。")
elif a==0 or b==0 or c==0 or not(a+b>c and a+c>b and b+c>a):
    print("这不是一个三角形。")
else:
    p = (a+b+c)/2
    area =( p*(p-a)*(p-b)*(p-c))**0.5
    print("此三角形的面积为{:.1f}".format(area))
a = float(input("请输入三角的边A:"))
b = float(input("请输入三角的边A:"))
c = float(input("请输入三角的边A:"))
print("三角形的三边分别为:{:.1f} {:.1f} {:.1f}".format(a, b, c))
if a + b > c and a + c > b and b + c > a:
    p = (a + b + c) / 2
    area = pow(p * (p - a) *(p - b) *(p - c), 0.5)
    print("此三角形的面积为:{:.1f}".format(area))
else:
    print("这不是一个三角形!")