大家好,又见面了,我是你们的朋友全栈君。
1
2
3
4
5
6
7
|
import urllib2
import sys
type = sys.getfilesystemencoding() #important
print content.decode( "UTF-8" ).encode( type ) #important
|
发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/127938.html原文链接:https://javaforall.net