下のようなエラーメッセージへの対処
>|zsh|
SyntaxError: Non-ASCII character ‘\xe3′ in file test.py on line 8, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details
||<

2行目か1行目に、# coding=xxxという文字を入れる
>|python|
1 #!/usr/local/bin/python
2 # coding=utf-8
3 import ImageFont, ImageDraw, Image
4
||<

Pocket

Leave a reply

required

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>