mirror of
https://github.com/vlang/v.git
synced 2025-09-14 06:52:36 +03:00
examples: show how to call a simple v module from python (#13105)
This commit is contained in:
parent
535317eba3
commit
5e85d4cb39
4 changed files with 17 additions and 1 deletions
4
examples/call_v_from_python/test.py
Normal file
4
examples/call_v_from_python/test.py
Normal file
|
@ -0,0 +1,4 @@
|
|||
from ctypes import *
|
||||
so_file="./test.so"
|
||||
my_functions = CDLL(so_file)
|
||||
print(my_functions.square(10))
|
Loading…
Add table
Add a link
Reference in a new issue