有没有擅长的帮看一下!

img


有没有会的能不能给个过程帮看一下!python题
help!不太理解


def f1(a, b, c):
    s = a + b + c
    avg = round(s / 3)
    return s, avg


def f2(a, b, c):
    l = sorted([a, b, c])
    if l[0] + l[1] > l[2] and l[0] * l[0] + l[1] * l[1] == l[2] * [2]:
        print("能够成三角形")
    else:
        print("不能构成三角形")


def f3(a, b, c):
    l = sorted([a, b, c], reverse=True)
    c = l[0]
    b = l[1]
    a = l[2]
    print('{},{},{}'.format(c, b, a))

if max(a, b, c) == a:  # 判断a 是否为最大值
    s = f1(a, b, c)  # 调用函数
    print(s)  # s 为多返回值构成的元组,输出该元组元素
elif max(a, b, c) == b:
    f2(a, b, c)  # 调用函数
else:
    f3(a, b, c)  # 调用函数

import math
a,b,c=map(int,input().split(','))

def f1(a,b,c):
    s=a+b+c
    ave=round(s/3.0)
    return s,ave
def f2(a,b,c):
    if (a+c)>b:
        print("能构成三角形")
    else:
        print("不能构成三角形")

def f3(a,b,c):
    if(a>b):
        print('{},{},{}'.format(c,b,a))
    else:
        print('{},{},{}'.format(c,a,b))
if max(a,b,c)==a:
    s=f1(a,b,c)
    print(s)
elif max(a,b,c)==b:
    f2()
elif max(a,b,c)==c:
    f3()
import math
a,b,c=map(int,input().split(','))

def f1(a,b,c):
    s=a+b+c
    avg=round(s/3)
    return (s,avg)

def f2(a,b,c):
    if b<a+c:
        print('能构成三角形')
    else:
        print('不能构成三角形')

def f3(a,b,c):
    if a>b: a,b=b,a
    print('{},{},{}'.format(c,b,a))

if max(a,b,c)==a:
    s=f1(a,b,c)
    print(s)
elif max(a,b,c)==b:
    s=f2(a,b,c)
else:
    s=f3(a,b,c)
import math
a,b,c = map(int, input().split(','))

def f1(a,b,c):
    s = sum([a,b,c])
    avg = round(s/3)
    return s, avg

def f2(a,b,c):
    if a+c>b:
        print('能构成三角形')
    else:
        print('不能构成三角形')

def f3(a,b,c):
    if a>b:
        d = b
        b = a
        a = d
    print('{},{},{}'.format(c,b,a))

if max([a,b,c])==a:
    s = f1(a,b,c)
    print(s)
elif max([a,b,c])==b:
    f2(a,b,c)
else:
    f3(a,b,c)

img