代码如下:def test(p): if (p==0): return 1 else: return p*test(p-1)
print(test(3))
同样的代码在Python2.6中可以正常输出ps:我用的cterm是3.3.52版