While practicing Python for the first time programming, I don't know right or left, but for the time being, as a memorandum for the first school.
When I tried to run Python using ** Atom Runner: script.py ** on Atom, an error was displayed, so how to solve it.
I referred to the UX MILK article
Solved by adding the following line to the script.
# coding: UTF-8
When handling Japanese in a program, it is necessary to specify the character code at the beginning of the program and save the file with the specified character code. To specify the character code of the Python program so that it can handle Japanese (UTF-8), write the following on the first or second line of the program.
And that.
Recommended Posts