Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个存在于命名空间之外的 C# .NET 类,需要在 IronPython 内部进行访问。通常我会这样做:
import SomeNamespace from SomeNamespace import *
但是,我没有命名空间。
像往常一样导入你的程序集,然后只导入类名:
import clr clr.AddReference("MyAssembly") import MyGlobalClass