Python乘法口诀表
发布日期:2021-05-07 16:37:31 浏览次数:18 分类:原创文章

本文共 285 字,大约阅读时间需要 1 分钟。

乘法口诀表

print("乘法口诀表")for i in range(1,10):    for j in range(1,i+1):        print(str(i)+str("*")+str(j)+"="+str(i*j),end=" ")    print() 


        
逆向乘法口诀表

print("逆向乘法口诀表")for i in range(9,0,-1):    for j in range(i,0,-1):            print(str(i)+str("*")+str(j)+"="+str(i*j),end=" ")    print()

上一篇:Python的类和对象
下一篇:Python的文件操作

发表评论

最新留言

表示我来过!
[***.240.166.169]2025年03月27日 18时56分52秒