mirror of
https://github.com/pocketpy/pocketpy
synced 2025-12-06 18:20:17 +00:00
Update bindings.md
This commit is contained in:
parent
bab7499e12
commit
5bf5ddcc71
@ -133,7 +133,8 @@ int main(){
|
||||
});
|
||||
|
||||
// use the Point class
|
||||
vm->exec("a = Point(1, 2)");
|
||||
vm->exec("import test");
|
||||
vm->exec("a = test.Point(1, 2)");
|
||||
vm->exec("print(a.x)"); // 1
|
||||
vm->exec("print(a.y)"); // 2
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user