python 打印9*9乘法表
# -*- coding: utf8 -*- # Author:wxq 1、 for i in range(1,10): for j in range(1,i+1): print "%d*%d=%2d"%(i,j,i*j), print ("") 2、============== for i in range(1,10): for k in range(1,10-i): print (" "), for j in range(1,i+1): print "%d*%d=%2d"%(i,j,i*j), print ("") 3、================== for i in range(1,10): for k in range(1,10-i): print (" "), for j in range(1,i+1): print "%d*%d=%2d"%(i,j,i*j), print ("")
笃信仁厚,慎思勤勉