Other posters are probably correct...there might be spaces mixed in with your tabs.
(其他海报可能是正确的...选项卡中可能混有空格。)
Try doing a search & replace to replace all tabs with a few spaces. (尝试进行搜索和替换,以所有空格替换几个空格。)
Try this:
(尝试这个:)
import sys
def Factorial(n): # return factorial
result = 1
for i in range (1,n):
result = result * i
print "factorial is ",result
return result
print Factorial(10)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…