天天进步一点点
学到了print 居然还有end功能。html
i = 0
while (i < 10):
j = 1
print()
while (j <= i):
print(str(i) + " x " + str(j) + " = ", i * j, end="\t")
j+=1
i+=1python
https://docs.python.org/3.3/library/functions.html#print
参考一下文档,end的功能,打印功能默认以新一行既回车结尾,用end 功能能够改变这个behavioride