Python convert string to unicode number

twfb發表於2024-11-07
message = "test"
message = "".join(hex(ord(i))[2:].rjust(4, "0") for i in message)

相關文章