2
ScriptEngine PythonEngine = Python.CreateEngine();
Scope = PythonEngine.CreateScope();
Point P = new Point(-1,1);
Scope.SetVariable("QWE", P);
PythonEngine.Execute("QWE.X = 0");
Console.WriteLine(P);
「UnboundNameException是未處理的」修改點,UnboundNameException
「沒有定義的全局名稱‘QWE’」
我不知道這是什麼例外的含義,也不知道怎樣去解決它,我相信我正在做一些非常簡單的事情......對吧?