Where does this come from: -*- coding: utf-8 -*-

前端 未结 4 1201
你的背包
你的背包 2020-11-30 17:29

Python recognizes the following as instruction which defines file\'s encoding:

# -*- coding: utf-8 -*-

I definitely saw this kind of instru

4条回答
  •  庸人自扰
    2020-11-30 18:01

    This is so called file local variables, that are understood by Emacs and set correspondingly. See corresponding section in Emacs manual - you can define them either in header or in footer of file

提交回复
热议问题