python使用for 出现的问题,有的输出换行,有的输出不换行
In [2]: for c in "Program":...: print(c,"%")
...:
P %
r %
o %
g %
r %
a %
m %
In [3]: for c in "Program":
...: print(c,end=" ")
...:
P r o g r a m
In [4]: for c in "Program":
...: print(c,end="")
...:
...:
Program
In [5]: for c in "Program":
...: print(c,end="%")
...:
P%r%o%g%r%a%m%
In [6]: for c in "Program":
...: print(c,"")
...:
...:
P
r
o
g
r
a
m
In [7]: for c in "Program":
...: print(c,end="^^")
...:
P^^r^^o^^g^^r^^a^^m^^