我写的代码
我在VScode里面编辑了一遍运行是ok的,为啥复制粘贴过去不行呀 应该怎么做啊
改成a,b,c=map(int, input().split())
a,b,c=map(int, input().split())
看着没问题啊
def fun(x,y,z): return (x+y+z)/3 a,b,c=input().split(',') a=int(a) b=int(b) c=int(c) d=fun(a,b,c) print("%.4f"%d)
你用这个试一下?我测试没问题