xiaohuahua108

我们在python的IDE中有时候会输入中文,python对中文不是太友好。现在我们就解决这个问题。一般情况下在你的代码前面加入:

# coding: utf-8

reload(sys)
sys.setdefaultencoding("utf-8")

基本上就可以了

分类:

技术点:

相关文章:

  • 2021-09-23
  • 2021-07-22
  • 2022-12-23
  • 2022-01-12
  • 2022-01-22
  • 2021-07-14
  • 2022-02-27
猜你喜欢
  • 2021-07-25
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-26
  • 2021-08-28
  • 2021-11-29
相关资源
相似解决方案