Discuss / Python / 练习作业

练习作业

Topic source

先把可变参数的成绩记录下来

def product(x, y=1,*args):
    cj = 1
    for i in args:
      cj = cj * i
    return x * y * cj

smasu

#2 Created at ... [Delete] [Delete and Lock User]

看了半天回答就这个最容易懂谢谢大佬


  • 1

Reply