擅长:python、mysql、java
<p>我不明白你的问题,但从上下文来看,我觉得你对python3.x和python2.x中的<code>print</code>有些混淆</p>
<p>它们之间的差别很大,因为python在从python2迁移到python3时破坏了向后兼容性。你知道吗</p>
<p>因此,在python2.x中使用的print命令实际上是一个语句/关键字,比如<code>x=1</code>,我们有<code>print a</code>,它打印a的值。但是在python3.x中print被简化为一个函数(方法),就像任何其他普通函数一样。你知道吗</p>
<p>尽管您也可以在python2.x中使用与python3.x相同的print语法,但它不会中断。你知道吗</p>
<p>希望这有帮助</p>