在Python中写中文注释格式

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

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

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