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)->变成蓝色

 


 





posted @ 2020-02-13 18:26  云破月来花弄影  阅读(1769)  评论(0编辑  收藏  举报