1、引入
可以用__future__模块
from __future__ import print_function
这样就可以在2.X中使用3.X中的print函数了
print默认输出语句后换行,此处被修改为" "
和print x, ''是不一样的
 
 
2、安装python3版本
 
知识链接: 
 
Python多版本管理工具pyenv(Deepin15.9

相关文章:

  • 2021-11-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-17
  • 2022-12-23
  • 2021-10-18
  • 2021-09-10
猜你喜欢
  • 2022-12-23
  • 2021-12-27
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案