I call super eagle API to solve the touch verification code, two times the newspaper error. After a series of searching materials and baidu, the steps are as follows: (Note: if the project directory structure is simple and there is no Chinese directory, directly use the absolute path to solve!!)

1. Project Catalog:

2. I want to call a class from chaojiying.py in 12306_selenium.

Call method :(the relative path call used here!)



Path = sys.path = list = list = list = list = list = list = list = list = list Tap the absolute path of the captcha!





Chaojiying. py = chaojiying.py = chaojiying.py = chaojiying.py = chaojiying.py = chaojiying.py = chaojiying.py = chaojiying.py = chaojiying.py = chaojiying.py

Here, this error is resolved!

12306_selenium. Py: CA,CP,SI

Call method :(the relative path call used here!)





Path does not contain the parent directory of password.py. If you don’t have one, add it to sys.path:





At this point, the path set has the parent directory of the password.py file that needs to be called, so we can change the call statement as follows:

Note :sys.path.append() adds the associated path, but the path you added disappears when you exit python!