我在Linux上使用.NET Core编写了一个C#库。现在我想在Python中使用它。有人对这个话题有经验吗?这可能吗?
我尝试使用:
import ctypes as ct
lib = ct.WinDLL("PythonTest.dll")
但是我遇到了这个错误。
Traceback (most recent call last):
File "<input>", line 1, in <module>
AttributeError: 'module' object has no attribute 'WinDLL'