# 乘法口诀 for x in range(1,10): for y in range(1,x+1): print(f'{y}x{x}={x*y}', end='\t') print() print('\n') # 加法口诀 for x in range(1,10): for y in range(1,x+1): print(f'{y}+{x}={x+y}', end='\t') print() print('\n') # 减法口诀 for x in range(1,10): for y in range(1,x+1): print(f'{y}-{x}={x-y}', end='\t') print()
1x1=1 1x2=2 2x2=4 1x3=3 2x3=6 3x3=9 1x4=4 2x4=8 3x4=12 4x4=16 1x5=5 2x5=10 3x5=15 4x5=20 5x5=25 1x6=6 2x6=12 3x6=18 4x6=24 5x6=30 6x6=36 1x7=7 2x7=14 3x7=21 4x7=28 5x7=35 6x7=42 7x7=49 1x8=8 2x8=16 3x8=24 4x8=32 5x8=40 6x8=48 7x8=56 8x8=64 1x9=9 2x9=18 3x9=27 4x9=36 5x9=45 6x9=54 7x9=63 8x9=72 9x9=81 1+1=2 1+2=3 2+2=4 1+3=4 2+3=5 3+3=6 1+4=5 2+4=6 3+4=7 4+4=8 1+5=6 2+5=7 3+5=8 4+5=9 5+5=10 1+6=7 2+6=8 3+6=9 4+6=10 5+6=11 6+6=12 1+7=8 2+7=9 3+7=10 4+7=11 5+7=12 6+7=13 7+7=14 1+8=9 2+8=10 3+8=11 4+8=12 5+8=13 6+8=14 7+8=15 8+8=16 1+9=10 2+9=11 3+9=12 4+9=13 5+9=14 6+9=15 7+9=16 8+9=17 9+9=18 1-1=0 1-2=1 2-2=0 1-3=2 2-3=1 3-3=0 1-4=3 2-4=2 3-4=1 4-4=0 1-5=4 2-5=3 3-5=2 4-5=1 5-5=0 1-6=5 2-6=4 3-6=3 4-6=2 5-6=1 6-6=0 1-7=6 2-7=5 3-7=4 4-7=3 5-7=2 6-7=1 7-7=0 1-8=7 2-8=6 3-8=5 4-8=4 5-8=3 6-8=2 7-8=1 8-8=0 1-9=8 2-9=7 3-9=6 4-9=5 5-9=4 6-9=3 7-9=2 8-9=1 9-9=0
标签:复制到,10,口诀,打印,range,12,11,print From: https://www.cnblogs.com/ygyalex/p/17035262.html