見出し画像

20240424 cause of last night error

Last night, program didn't work well by the difference of the enviroment between Windows and Mac. The cause of the error is the following

\aが生成された瞬間、Pythonは\aを制御コードとして解釈し、変換し\x07となる。

Originally, the source code was written by Mac, which use "/" to divide folder, but in Windows, folders are divided by "\".
So, if "a" is the first character of the folder name, "\a" is consider as the control code.
It took more than 1 hour to find this fact, so yesterday I sit up late till 3:30am. I'm sleepy now, so I will go to bed at once.


この記事が気に入ったらサポートをしてみませんか?