我已经下载了最新的python版本(3.8.5)和google chrome版本(84)以及相应的chromedriver版本(84)。但是浏览器在运行程序时不响应
from time import sleep
from selenium import webdriver
class Bot:
def __int__(self):
self.driver = webdriver.Chrome("C:\\Windows\\chromedriver.exe")
self.driver.get("www.google.com")
my_bot = Bot()
def main():
my_bot()
if __name__ == 'main':
main()
上面是我的python代码
三行比较容易
你完了
相关问题 更多 >
编程相关推荐