Why does b(string) and bytes(string, ‘utf-8’) give different results in Python?

前端 未结 0 1902
心在旅途
心在旅途 2021-02-12 21:35
byte_1 = b\'\\xc0*\\xael<\\x9e\\xcf\\x81\\xa2\\xd8\\xb5\\xe3\\x1d\\xe1\\xaa8\'
byte_2 = bytes(\'\\xc0*\\xael<\\x9e\\xcf\\x81\\xa2\\xd8\\xb5\\xe3\\x1d\\xe1\\xaa8\',         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题