Masahiro's tech note
PostsProjectsAbout
PostsProjectsAbout
Backback arrow icon
Python

python SyntaxError: Non-ASCII character

pythonを使っていたらタイトルのエラーが発生

以下のコードを1行目に突っ込んだら解決しました〜

 # coding:utf-8
Featured
pytestのメモ
2022/01/02
Python
imported module ‘test_room’ has this __file__ attributes which is not the same as the test file we want to collect:
2022/01/01
FastAPI
Flask
Python
json.decoder.JSONDecodeError: Invalid control character at: line 1 column 171 (char 170)
2021/03/21
FastAPI
Python

github
twitter
menta
mail
copyright © 2016-2023 Masahiro Okubo