这格式真累人,闲置两天又捡回来做 for i in range(1, 10): for j in range(1, i+1): print(j, "*", i, "=", str(j * i).rjust(2, " "), sep="", end= " ") print()