Created
March 25, 2019 16:06
-
-
Save lartpang/c6713a29f7ae17951113651dff94d2f7 to your computer and use it in GitHub Desktop.
一种针对平台编码方式编码的方法
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding:YTF-8 -*- | |
import sys | |
type = sys.getfilesystemencoding() | |
... | |
decode('UTF-8').encode(type) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment