题目:
question 1-2:
def print_info_1():
print("-"*10)
def print_info_2():
num=input("请输入打印的行数")
n=0
while n<int(num):
print_info_1()
n+=1
print_info_2()
question:
def addnum(a,b,c):
return a+b+c
def mean_value():
a=input("请输入:")
b=input("请输入:")
c=input("请输入:")
result=addnum(int(a),int(b),int(c))
mean=result/3
print("平均值为:")
return mean
print(mean_value())