我们都知道在python中用print来输出显示都会自动的换行,例如:
<pre name="code" class="python"> for item in range(8):
print item
输出:
0
1
2
3
4
5
6
7
for item in range(8):
print item,
输出:
0 1 2 3 4 5 6 7
我们都知道在python中用print来输出显示都会自动的换行,例如:
<pre name="code" class="python"> for item in range(8):
print item
输出:
0
1
2
3
4
5
6
7
for item in range(8):
print item,
输出:
0 1 2 3 4 5 6 7