计算平均分 编写一个程序,根据输入的 3 个成绩,计算平均分。 a=float(input("第一门成绩:")) b=float(input("第二门成绩:")) c=float(input("第三门成绩:")) num=(a+b+c)/3 print("平均分为:"+str(num)) 运行结果如下图: