【问题标题】:How to add auto codecomplete for .net dll in pycharm or any other IDE如何在 pycharm 或任何其他 IDE 中为 .net dll 添加自动代码完成
【发布时间】:2015-08-07 22:03:35
【问题描述】:

我有一个导入到 python 2.7.9 中的 .net dll

import sys
import clr
import System
from System.Reflection import Assembly
Engine = Assembly.LoadFile(r'file.dll')

现在我需要的是该 .net dll 的完整代码。 使用 python 命令行导入后,我可以使用 dir() 查看类中的方法。

但就目前而言,我使用的是 pycharm 社区 4.0.6,我不明白如何添加 .net dll 以用于自动代码完成。

另外我认为也许我可以剥离 .net dll 的 API 并将其添加为参考,但我不知道哪个工具可以帮助我

P.S- 如果 pycharm 不支持,其他 IDE 支持,请指教

【问题讨论】:

    标签: python .net import autocomplete python.net


    【解决方案1】:

    我发现的这个论坛帖子没有明确说明,但他们建议如果它抱怨就选择忽略导入。

    http://fougerite.com/threads/setup-pycharm-for-python-plugins.198/

    我希望有一个答案表明这是可能的,但如果得知目前不可能,我不会感到惊讶。 PyCharm 的功能请求?

    【讨论】:

      【解决方案2】:

      您可以使用 Jupyter/IPython 和 PTVS REPL 来完成 Python.NET 选项卡。静态分析无法获取这些活动对象。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2020-09-21
        • 1970-01-01
        • 2015-12-31
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多