This is my directory
If I execute part of the code, I first import pandas and then read will report an error
If you run all the code directly, you can read it in
Later I found that if I read the file, I can partially execute it with an absolute path without reporting an error. If it is a relative path, I can only run the entire code, otherwise an error will be reported
What is the reason for this, please help