iT邦幫忙

0

'module' object is not callable (python)

想做一個簡單叫出google的功能
估狗很多方法debug還是無解...

https://ithelp.ithome.com.tw/upload/images/20211130/20144378QkrUqFkQY3.jpg

錯誤代碼
https://ithelp.ithome.com.tw/upload/images/20211130/20144378IoxoBQMJeb.jpg

python新手, 請大家幫幫忙, 謝謝大家

把斜線反過來
c:/Users/user/................/chromedriver
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

1 個回答

0
huahualiu
iT邦新手 2 級 ‧ 2021-11-30 11:10:00
最佳解答

請加上 .exe

PATH = r"C:\\Users\\user\\Desktop\\a\\chromedriver.exe"
driver = webdriver.Chrome(executable_path=PATH)

我要發表回答

立即登入回答