左下
for i in range(1, 10):
for j in range(1, i + 1):
k = i * j
print('{}*{}={}'.format(i, j, k), end='\t')
print('\n')
左上
for i in range(1, 10):
for j in range(i, 10):
k = i * j
print('{}*{}={}'.format(j, i, k), end='\t')
print('\n')
右上
for i in range(1, 10):
for j in range(i, 10):
k = i * j
print('{}*{}={}'.format(i, j, k), end='\t')
print('\n')
print(end="\t" * i)
右下
for i in range(1, 10):
print(end='\t' * (10 - i))
for j in range(1, i + 1):
k = i * j
print('{}*{}={}'.format(j, i, k), end='\t')
print('\n')