关于print()语句的不同位置


例子1:
s="PYTHON"
while s !="":
for c in s :
if c == "T":
break
print(c,end="")
s=s[:-1]
》》》PYPYPYPYPYP

例子2:
s="PYTHON"
while s !="":
for c in s :
if c == "T":
break
print(c,end="")
s=s[:-1]
》》》TTTTYP





posted @ 2019-07-23 08:36  板岩  阅读(399)  评论(0编辑  收藏  举报