[Python]編碼聲明:是coding:utf-8仍是coding=utf-8呢

咱們知道在Python源碼的頭文件中要聲明編碼方式,若是你不僅是會用到ascii碼,不少人都寫得都有點差異:python #coding=utf-8正則表達式 #coding:utf-8vim #-*- coding:utf-8 -*-編輯器   那麼怎樣寫纔是有效地呢,哪些優點無效的呢? 編碼 能夠查看下http://www.python.org/dev/peps/pep-0263/的解釋cod
相關文章
相關標籤/搜索