标签: python
a如何获得整个str hello \0 world?
a
hello \0 world
>>> import ctypes >>> c=b'hello \0 world' >>> a=ctypes.c_char_p(c) >>> a c_char_p(44440112) >>> a.value 'b'hello