将geckodriver.exe放到python根目录下或Scripts中,或者在webdriver.Firefox()中指定其路径。参考:https://blog.csdn.net/qq_36914676/article/details/86514657
加入系统环境变量