指示错误:不缩进不匹配任何外部缩进级别当我编译下面的Python代码时,我得到指示错误:不缩进不匹配任何外部缩进级别import sysdef Factorial(n): # Return factorial
result = 1
for i in range (1,n):
result = result * i print "factorial is ",result return result为什么?
3 回答
慕莱坞森
TA贡献1810条经验 获得超4个赞
import sysdef Factorial(n): # return factorial result = 1 for i in range (1,n): result = result * i print "factorial is ",result return resultprint Factorial(10)
添加回答
举报
0/150
提交
取消