关于以下程序,下列表述中错误的一项是?( )
def demo(n):
s=1
for i in range(1,n):
s*=i
return s
demo(n)函数的功能是求n的阶乘
s是局部变量
n是形式参数
range()函数是Python内置函数