There were two answers and some comments mentioned, another question, but all did not provide REASON, why did Python do this? such as '/ b' is '/ x08' is only a result, but why? Greetings.
I am trying to add this path "F: \ large data \ Python_coding \ diveintopython-5.4 \ py" Thus, in sys.path, the code under it can be imported directly.
after use: sys.path.append('F:\big data\Python_coding\diveintopython-5.4\py')
I found that I had this path inside sys.path: 'F: \ x08ig data \ Python_coding \ diveintopython-5.4 \ py'
Then I tested using the following code: mypath1='F:\big data\bython_coding\aiveintopython-5.4\ry'
mypath1 now: 'F:\x08ig data\x08ython_coding\x07iveintopython-5.4\ry'
all '\ b' replaced by '\ x08' and '\ a' changed to '\ x07'
I searched for a while, but still canβt find the reason, could you check it and any feedback or help will be assigned. Many thanks.
python string
TC
source share