效果图:
代码:
# row = 1
# while row <10:
# col = 1
# while col <= row:
# print(f"{col}*{row}={col*row}",end='\t')
# col+=1
#
# print(end='\n')
# row+=1
row = 1
for row in range(1,10):
col = 1
for col in range(1, row+1):
print(f"{col}*{row}={col*row}",end='\t')
col+=1
print(end='\n')
row+=1