你的问题是什么,我没清楚
# 海伦公式
import math
# a = int(input())
# b = int(input())
# c = int(input())
a, b, c = eval(input('请输入三条边长以逗号分隔'))
s = (a + b + c) / 2
print(s)
if a > 0 and b > 0 and c > 0 and a + b > c and a + c > b and b + c > a:
# print(math.sqrt(s * (a + b - c) * (a + c - b) * (b + c - a)))
print(round(math.sqrt(s * (a + b - c) * (a + c - b) * (b + c - a)),2))
else:
print('不能构成三角形')
import math
inp = input('请输入三角形的3条边长(以逗号分隔):').split(',')
if int(inp[0])+int(inp[1])>int(inp[2]) and int(inp[0])+int(inp[2])>int(inp[1]) and int(inp[1])+int(inp[2])>int(inp[0]):
s = (int(inp[0])+int(inp[1])+int(inp[2]))/2
x = s*(s-int(inp[0]))*(s-int(inp[1]))*(s-int(inp[2]))
area = math.sqrt(x)
# res = round(area,2)
print(inp[0]+','+inp[1]+','+inp[2]+'能构成三角形\n'+'组成的三角形面积是:'+'%.2f' % area)
else:
print(inp[0]+','+inp[1]+','+inp[2]+'不能构成三角形')