左侧导航栏venv >> lib >> site-packages,选中site-packages,然后右键选中make directory as 点击sources root 然后就正常了,输入时会显示函数,没有波浪线报错