1.九九乘法表
s="" for i in range(1,10): for j in range(1,i+1): s+=str(i)+"*"+ str(j)+"="+str(i*j)+" " print(s) s=""
2.print() <==不换行
for i in range(1,10): print(i,end=" ")
for i in range(1,10): print(i,end=" ",sep="-")
eng默认“ ”,sep表分隔符