while循環
row=1
while row<=9:
line=1
while line<=row:
print(f'{row}*{line}={row*line}',end=' ')
line =1
print()
row =1
for循環
for row in range(1,10):
for line in range(1,10):
if line<=row:
print(f'{line}*{row}={line*row}',end=' ')
print()
,
更多精彩资讯请关注tft每日頭條,我们将持续为您更新最新资讯!