v/examples/call_v_from_python/test.py

5 lines
101 B
Python

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