2017年4月11日

Python 经典编程题

摘要: # -*- coding: cp936 -*- #enconding: utf-8 ######################################################## #打印99乘法表 ######################################################## def gen(line_cnt): for i in... 阅读全文

posted @ 2017-04-11 18:49 星海一哥 阅读(21239) 评论(1) 推荐(0)

Python 2.x关于unicode;decode;utf-8等字符转化写入问题研究

摘要: Python 语言总的方式编码方式: 基于python2.7中的字符串: unicode——》编码encode('utf-8')——》写入文件 @1 读出文件——》解码decode('utf-8')——》unicode @2 总结纠正: -*- coding:utf-8 -*- 》unicode—— 阅读全文

posted @ 2017-04-11 13:45 星海一哥 阅读(673) 评论(0) 推荐(0)

导航