0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Python「SyntaxError: Non-ASCII character〜」が出てしまった時

Last updated at Posted at 2020-08-09
# -*- coding: utf-8 -*-

を確認

Python3 で UTF-8 なら、coding指定不要との事です。
参考: https://pep8-ja.readthedocs.io/ja/latest/

ASCII (Python 2) や UTF-8 (Python 3) を使用しているファイルにはエンコーディング宣言を入れるべきではありません。

0
0
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?