在Python中写中文注释格式

在第一行或第二行加如下编码:

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

posted @ 2018-08-15 16:01  pei-金秋十月  阅读(367)  评论(0)    收藏  举报