当我运行这段代码时:
from helium import *
start_chrome()我得到了这个错误:NameError: name 'start_chrome' is not defined帮助解决这个问题。有趣的是,昨天它起作用了。
发布于 2021-02-22 11:14:08
我在VS code中测试了这段代码,结果显示它可以运行:

请检查当前python环境是否包含VS Code终端中的模块"helium“。

此外,请尝试重新加载VS代码,使其识别模块。
我的环境:
VS代码: 1.53.2 (用户设置);Python:3.8;python扩展: 2021.2.582707922;Jupyter扩展: 2021.2.576440691
"python.languageServer": "Microsoft",操作系统: Windows_NT x64 10.0.19041
https://stackoverflow.com/questions/66277976
复制相似问题