python-不换行输出+print()完整参数详解

0.摘要python 因为特殊的输出要求,咱们在使用print()函数时,并不但愿输出结束后自动换行。函数   1.print()指定结束符3d print('hello',end='') print('world') #result:helloworld 当print()函数,指定end参数为空字符后,print()函数就再也不主动添加换行符了。而且,hello和world之间也不存在任何空格。
相关文章
相关标签/搜索