【Python】【demo实验2】【打印乘法口诀表】

打印乘法口诀表

源代码:

# encoding=utf-8
for i in range(1,10):
    print("\n")
    for j in range(1,10):
        if i<j:
            continue
        else :
            print(j,"X",i,"=",i*j,end = "  ")

效果:

————————(我是分割线)————————

参考:

None

备注:

初次编辑时间:2019年9月22日18:01:28

环境:Windows 7   / Python 3.7.2

猜你喜欢

转载自www.cnblogs.com/kaixin2018/p/11568499.html