pycharm - 如何在 PyCharm 中导入?

标签 pycharm

PyCharm 中是否有快捷方式可以转到当前模块中导入符号的位置?

我尝试了“转到声明”,但它转到了另一个模块。

最佳答案

这是来自 JetBrains 支持的答案:

Try to use a shortcut for "Find Usages in current file": https://www.jetbrains.com/help/pycharm/finding-usages-in-the-current-file.html



To find usages of a symbol in the current file

  1. Click the desired symbol in the editor, or in the Structure view.
  2. On the main menu, choose Edit | Find | Find Usages in File, or press Ctrl+F7. The encountered usage is highlighted in the editor.

关于pycharm - 如何在 PyCharm 中导入?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23051804/

相关文章:

python - 我无法在 Python (PyCharm) 中输入字母 "&"它用空格替换它 {BUG}

python - 比较:Pycharm 与 WingIDE

python - 当 Pycharm 不断失败时,如何在 Pycharm 中安装旧版本的 Pip?

python - 终端输出中的可点击链接

python - PEP 8 : comparison to True should be 'if cond is True:' or 'if cond:'

python - Django: AttributeError: 'Employee' 对象没有属性 'current_hours'

testing - PyCharm:如何在所有打开的项目中运行测试?

python - runserver 命令的 PyCharm 问题

python - pycharm 中的 Tensorflow.keras.layers "unresolved reference"

python - Pycharm:cfg和.pylintrc文件的文件类型是什么(用于语法突出显示)