Had two answers and some comments, mentioned another question, but all had not provided REASON, why Python did this changes? such as '/b' is '/x08' is just the result, but why?
Cheers.
I try to add this path"F:ig dataPython_codingdiveintopython-5.4py"
into sys.path, therefore, the code under it could be imported directly.
after using : sys.path.append('F:ig dataPython_codingdiveintopython-5.4py')
I found I had this path inside sys.path: 'F:x08ig dataPython_codingdiveintopython-5.4py'
I then tested using the following code:mypath1='F:ig dataython_codingaiveintopython-5.4
y'
the mypath1 now is : 'F:x08ig datax08ython_codingx07iveintopython-5.4
y'
all the '' changed into 'x08' and 'a' changed into 'x07'
I searched for a while, but still can not find the reason, could you please check it out and any feedback or help will be appropriated.
Many thanks.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…