Python引用某一文件的方法出现红色波浪线

from parse import parse_url#引用parse里面的方法 结果出现波浪线并提示

This inspection detects names that should resolve but don't. Due to dynamic dispatch and duck typing,
this is possible in a limited but useful number of cases.
Top-level and class-level items are supported better than instance items.
解决方法 文件->设置->->选择parse.py所在文件夹->右键选择来源(第一个 source)->变成蓝色






原文地址:https://www.cnblogs.com/zzstdruan1707-4/p/12310204.html