python 可变参数传递 范例n!

可变参数传递 范例n!

代码如下:

def fact(n,*b):
	s=1
	for i in range(1,n+1):
	    s*=i
	for item in b:
            s*=item
	return s

发布了83 篇原创文章 · 获赞 1 · 访问量 2934

猜你喜欢

转载自blog.csdn.net/qq_40253803/article/details/105508160