你需要解码bytes对象以产生一个字符串:
>>> b"abcde"b'abcde'# utf-8 is used here because it is a very common encoding, but you# need to use the encoding your data is actually in.>>> b"abcde".depre("utf-8") 'abcde'
你需要解码bytes对象以产生一个字符串:
>>> b"abcde"b'abcde'# utf-8 is used here because it is a very common encoding, but you# need to use the encoding your data is actually in.>>> b"abcde".depre("utf-8") 'abcde'