Python的编码问题

Python编程时中如果要使用中文:则要在编程文件的第一行声明使用utf-8编码方式:        

         #-*-  coding:utf8  -*-



 

posted @ 2013-03-24 18:02  hawkboy  阅读(77)  评论(0)    收藏  举报