开发者社区> 问答> 正文

Python2.x 中如何使用 Python3.x 的 print 函数呢?

Python2.x 中如何使用 Python3.x 的 print 函数呢?

展开
收起
游客ydhxr2xydmgpo 2022-03-14 23:15:09 2049 0
1 条回答
写回答
取消 提交回答
  • 如果 Python2.x 版本想使用 Python3.x 的 print 函数,可以导入 future 包,该包禁用 Python2.x 的 print 语句,采用 Python3.x 的 print 函数

    2022-03-14 23:15:52
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
From Python Scikit-Learn to Sc 立即下载
Data Pre-Processing in Python: 立即下载
双剑合璧-Python和大数据计算平台的结合 立即下载