2021-01-01

Python打印九九乘法表

for c1 in range(0,10):
    print()
    for c2 in range(1,c1+1):
        c3=c1*c2
        print(f"{c1}*{c2}={c3}",end=" ")

你可能感兴趣的:(python)