Python convert string to unicode number

message = "test"
message = "".join(hex(ord(i))[2:].rjust(4, "0") for i in message)
posted @ 2024-11-07 00:14  twfb  阅读(5)  评论(0编辑  收藏  举报