1、代码:
i = 1ji = 1while (i <= 9): j = 1 while(j <= i): ji = j * i print(str(j)+"*"+str(i)+"="+str(ji),end=" ")#使用end不换行,每个等式后留三个空格 j = j + 1 print()#换行 i = i + 12、执行结果: