代码j = 1 while j <= 9: i = 1 while i <= j: # 格式化输出,每行的个数与行号相同 print(f'{i}*{j}={i*j}',end='\t') i += 1 # 输出一行后换行显示 print() j += 1
评论 (0)