Testing
This commit is contained in:
@@ -1,3 +1,6 @@
|
|||||||
def hello(name):
|
def hello(name):
|
||||||
print("Hello, bro! " + name)
|
print("Hello, bro! " + name)
|
||||||
return "Idk, return value i guess"
|
return "Idk, return value i guess"
|
||||||
|
|
||||||
|
def add(x, y):
|
||||||
|
return x + y
|
||||||
@@ -8,4 +8,6 @@ fn main() {
|
|||||||
let m = python::import("bro.py", &gil);
|
let m = python::import("bro.py", &gil);
|
||||||
|
|
||||||
println!("{:?}", m.call("hello", vec![&"leo"]).extract::<String>());
|
println!("{:?}", m.call("hello", vec![&"leo"]).extract::<String>());
|
||||||
|
|
||||||
|
println!("{:?}", m.call("add", vec![&10, &20]).extract::<i32>());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user