> For the complete documentation index, see [llms.txt](https://firmianay.gitbook.io/ctf-all-in-one/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://firmianay.gitbook.io/ctf-all-in-one/9_appendix/9.5_hexstrbyte.md).

# 9.5 python2到3字符串转换

<https://blog.whtaguy.com/2021/02/python2-python3-hexstrbyte-conversion.html>
