标签:
import ctypes
s0 = ‘hello,www.cricode.com‘
s1 = ctypes.create_string_buffer(s0)
testlib1 = ctypes.CDLL(‘./testlib1.so‘)
testlib1.reverse(s0)
print ‘s0 is: ‘,s0
print ‘s1 is: ‘,s1.value
引用:http://www.cricode.com/359.html
标签:
原文地址:http://www.cnblogs.com/li-baibo/p/4192084.html