W3School TIY Editor

  • W3School 在线教程
  • 改变方向
  • 暗黑模式
​x
 
# 导入数学库
import math
​
# 返回数值的阶乘
print(math.factorial(9))
print(math.factorial(6))
print(math.factorial(12))