1、實現源碼
def buildMulTable():
for x in range(1, 10):
for y in range(1, x + 1):
print('{}x{}={}\t'.format(y, x, x * y), end='')
print(end='\n')
buildMulTable()
2、實現說明
(1)使用了 \t 空格符
(2)使用了 \n 換行符
3、實現結果