When running the following code, it will get stuck all the time.
Is there any solution?
c# code:
ScriptEngine engine = Python.CreateEngine();
ScriptScope scope = engine.CreateScope();
return engine.Execute(@"import math
def myadd(a, b):
while True:
a += 1
b += 1
return a + b
myadd(2, 3)", scope);
When running the following code, it will get stuck all the time. Is there any solution?
c# code: