1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
v/examples/call_v_from_python/test.py

9 lines
153 B
Python

from ctypes import *
import os
so_file="./test.so"
if os.name=="nt":
so_file="./test.dll"
my_functions = CDLL(so_file)
print(my_functions.square(10))