num = 1 #赋值变量为1 while num<10: #当变量小于10 num1 = 1 #赋值变量1为1 while num1<=num: #变量小于等于变量1 print(num1,"*",num,"=",num*num1,end="\t") #输出 num1+=1 print() num+=1 \t制表符 \n换行符