python 小案例demo07

#作业2
def printinfo():
print("-"*30)
def numprint(num):
i = 0
while i < num:
printinfo()
i += 1
def addNums(a,b,c):
return a + b +c
def averageNums(a,b,c):
average = (a + b + c)/3.0
return average

print(averageNums(3,2,3))
posted @ 2020-10-28 12:52  AxeBurner  阅读(65)  评论(0编辑  收藏  举报