Title
2020

pycharm cv2 的方法不能智能提示

按住ctrl,光标放在cv2上,就能跳转到cv2的__init__.py文件
全选,按Ctrl+/注释掉所有语句,然后将如下语句添加到__init__.py中
import sys import os import importlib os.environ["PATH"] += os.pathsep + os.path.dirname(os.path.realpath(__file__)) from .cv2 import * globals().update(importlib.import_module('cv2.cv2').__dict__)

posted @ 2021-11-16 20:52  俗了清风  阅读(279)  评论(0编辑  收藏  举报
Title