九九乘法表 1x1 = 1 1x2 = 2 2x2 = 4 1x3 = 3 2x3 = 6 3x3 = 9 # 外层循环控制行数 for i in range(1, 10): # 内存循环控制每行怎么打印 for j in range(1, i+1): print('{}x{} = {}'.format(j, i, j*i), end=' ') # 换行 print()