能用这样的思路写吗?错在哪里呢?
>>> cj=1
>>> def digui(n):
... while n>1:
... cj=cj*n
... n=n-1
... if n==1:
... break
... return cj
>>> cj=1
>>> def digui(n):
... while n>1:
... cj=cj*n
... n=n-1
... if n==1:
... break
... return cj
2019-04-10
举报