Possible Duplicate:
What is the C Equivalent of Python's pack(“<I”, 0)
如何在 Python 中复制代码:
from struct import pack
string = pack("<I", 0x11111111)
print string
用C语言?据我了解\x11 是一个不可打印的字符,所以...?
最佳答案
const char *string = "\x11\x11\x11\x11";
puts(string);
关于python - Python 代码 struct.pack 的 C 等效项?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10777831/