标签:python
每天进步一点点i = 0
while (i < 10):
j = 1
print()
while (j <= i):
print(str(i) + " x " + str(j) + " = ", i * j, end="\t")
j+=1
i+=1
https://docs.python.org/3.3/library/functions.html#print
参考一下文档,end的功能,打印功能默认以新一行既回车结尾,用end 功能可以改变这个behavior
标签:python
原文地址:http://blog.51cto.com/9272543/2118530