Base64 Error in encoding, bytes-like object is required, not 'str'

后端 未结 0 1841
庸人自扰
庸人自扰 2021-01-13 19:12
import base64
mycode = "print \'Hello World!\'"
secret = base64.b64encode(mycode)
print(secret)

This code doesn\'t work it says bytes-like

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