标签: python c string bytearray
Python会改变我的字符串吗?
相关问题是I was using a little shellcode in my python but failed
答案 0 :(得分:6)
>>> chr(int('49', 16)) 'I'
实际上,\x49 是 I。
\x49
I
关于此的解释:
\x49表示“代码49为十六进制的字符。十六进制中的49为int('49', 16):73。73是I的ASCII字符代码,您可以通过以下方式验证:ord('I'):73。
int('49', 16)
73
ord('I')