九九乘法表及金字塔
一.九九乘法表
for x in range(1,10):
for y in range(1,x+1):
print('%s*%s=%s'%(x,y,x*y),end=' ')
print()
二.金字塔
x = 9
for y in range(1,x):
for a in range(x-y):
print(' ',end='')
for b in range(2*y-1):
print('^',end='')
print()