asm_book/python/test.py
2023-01-25 21:06:42 -06:00

4 lines
101 B
Python

from ctypes import *
so_file = "./my_square.so"
my_funcs = CDLL(so_file)
print(my_funcs.square(10))