python recursive computation N! Code

Content during the process of writing the contents of commonly used piece of content to back up a bit, the following content is calculated recursively on python N! The content should also be useful for each friend.
factorial DEF (n-):
IF n-== 0:
return. 1
the else:




 

Guess you like

Origin www.cnblogs.com/szfutc/p/11264499.html