求助!!有没有py大佬能帮我看看
查看原帖
求助!!有没有py大佬能帮我看看
1337237
wwyyll111楼主2024/4/10 23:11

from math import sqrt input_str = input(" ") a_str, b_str, c_str = input_str.split() a = float(a_str) b = float(b_str) c = float(c_str) p = (a+b+c)/2 area = sqrt(p*(p - a)(p - b)(p - c)) print(round(area, 1))

2024/4/10 23:11
加载中...