Discuss / Python / 作业

作业

Topic source

lostanother

#1 Created at ... [Delete] [Delete and Lock User]
the function to get n*(n-1)*···*1
    >>> fact(1)
    1
    >>> fact(2)
    2
    >>> fact(3)
    6
    >>> fact(0)
    Traceback (most recent call last):
    ...
    ValueError

  • 1

Reply