Roc*_* Ho 5 c# static ironpython dynamic-language-runtime
scope.SetVariable("math",?? typeof(System.Math)??);
还是我需要创建一个模块?
你可以做:
scope.SetVariable("math",DynamicHelpers.GetPythonTypeFromType(typeof(System.Math)));
DynamicHelpers位于IronPython.Runtime.Types中.
归档时间: |
|
查看次数: |
1751 次 |
最近记录: |