这就是问题:在Python中给出以下程序,假设用户从键盘输入数字4.返回的价值是多少?
N = int(input("enter a positive integer:")) counter = 1 while (N > 0): counter = counter * N N = N - 1 return counter
但是当我运行系统时,我一直遇到外部函数错误我做错了什么?谢谢!
python function
function ×1
python ×1