import ctypescss
s0 = 'hello,www.cricode.com'html
s1 = ctypes.create_string_buffer(s0)url
testlib1 = ctypes.CDLL('./testlib1.so')spa
testlib1.reverse(s0)code
print 's0 is: ',s0htm
print 's1 is: ',s1.valueblog
引用:http://www.cricode.com/359.html ip