我的python脚本只是打开了google。
批次编码::
@py.exe "C:\Users\Hey\Desktop\C.Outlet\Computer Science\Python\TryingToScrape.py"
pausePython代码::
#! python 3.7
#Web Scraping
import webbrowser
webbrowser.open('www.google.com/')我不能让它工作,这就是我的最终结果
C:\Users\Hey\AppData\Local\Programs\Python\Python37-32\python.exe: can't open file '3.7': [Errno 2] No such file or directory
C:\Users\Hey>pause
Press any key to continue . . .在IDLE中工作,而不是通过cmd我猜?需要那种溢出的洞察力
发布于 2019-05-02 05:39:07
它是代码中的(shebang) #! python 3.7行。我已经重现了这个错误,删除它可以让代码正常运行。
原件:
#! python 3.7
#Web Scraping
import webbrowser
webbrowser.open('www.google.com/')工作(测试):
#Web Scraping
import webbrowser
webbrowser.open('www.google.com/')https://stackoverflow.com/questions/55942953
复制相似问题