1.首先打开pycharm 2.点击左上角的File按钮 3.在弹出的菜单栏中,找到InvalidateCaches/Restart...按钮,翻译成中文就是清除缓存 4.点击Invalidate这个按钮 forkeyinlist(globals().keys()): if(notkey.startswith("__"))and(key!="key"): globals().pop(key) print(key) delkey 链接:https://www.zhihu.com/que...