Discuss / Python / # 计算函数的乘积

# 计算函数的乘积

Topic source

DeepSeaLight

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

def product(x,args): n = 1 for arg in args: n = n arg return n * x print(product(2,3,4,5,7))

DeepSeaLight

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

def product(x,星args): n = 1 for arg in args: n = n 星 arg return n * x print(product(2,3,4,5,7))


  • 1

Reply