0
点赞
收藏
分享

微信扫一扫

用for语句算15的阶乘

豆丁趣 2022-04-13 阅读 25
python

x=1

for i in range(1,16):       #i从1依次取到15

    x=x*i

print(x)

举报

相关推荐

0 条评论