用python语言写出九九乘法表: 第一种方法: for i in range(1, 10): for j in range(1, i+1): h = i * j print("{0} * {1} = {2}" .format(i, j, h), end="\t") print("") 第二种方法: for x in range(1, 10): for y in range(1, x+1): print("{0} * {1} = {2}" .format(x, y, (x * y)), end="\t") print()