色婷婷狠狠18禁久久YY,CHINESE性内射高清国产,国产女人18毛片水真多1,国产AV在线观看

請教個python編程中1個簡單問題

錢多多2年前18瀏覽0評論

請教個python編程中1個簡單問題?

1

2

3

4

5

6

7

8

9

10

11

12

13

def fac(num):

if num > 1:

#在此處調整代碼

result = num

for i in range (1, num):

result = result * i

return result

else:

return 1

number = int(input('Please input a natural number:'))

answer = fac(number)

print('The factorial of %d is %d.'%(number,answer))