Am i doing the .encoode correctly?

前端 未结 0 591
走了就别回头了
走了就别回头了 2021-01-31 04:45

So i tried using the .encode on a str, but the encoded message always turned out as b\'str here\'

m = \'hello\'
t=m.encode(encoding=\'UTF-8\')
print(t)
<         


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