原创 Python:計算某個數的階乘

1.用循環的方法實現: num = int(input()) factorial = 1 # 1 for i in range(1,num + 1): # 2 factoria