Skip to content

Commit

Permalink
utf-8编码
Browse files Browse the repository at this point in the history
  • Loading branch information
Ccapton committed Dec 2, 2018
1 parent e41e462 commit 2e5ec34
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions brook-ok.py
Original file line number Diff line number Diff line change
Expand Up @@ -1154,5 +1154,8 @@ def entry():


if __name__ == "__main__":
if python_version == '2':
reload(sys) # python3解释器下可能会提示错误,没关系,因为只有python2运行本程序才会走到这步
sys.setdefaultencoding("utf-8") # 同上
entry()

0 comments on commit 2e5ec34

Please sign in to comment.