print()函数的end 参数

Posted 安柠筱洁

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了print()函数的end 参数相关的知识,希望对你有一定的参考价值。

print()函数含end参数时:结束的时候已什么结尾,后面的参数可以是任何形式

print() 默认以\'\\n\'  结尾

输出结果:

 

 print()函数不含end参数时:

输出结果:

 

 

以上是关于print()函数的end 参数的主要内容,如果未能解决你的问题,请参考以下文章

Python标准库 内置函数print objects sep ' ' end ' ' file sys st

Python 3:更改现有函数参数的默认值?

Python使用print打印时,展示内容不换行

python里的end是啥意思

python对函数的理解

1.print()与input()