我有这个代码:
str = "text" x = str.encode('ascii') print(x)
我得到这个:b'text'
我想得到这个:“116 101 120 116”作为字符串。我想要像我在这里得到的解决方案。
python ascii encode
ascii ×1
encode ×1
python ×1