12 2014 档案

理解Python的With语句
摘要:###with语句是什么Python's with statement provides a very convenient way of dealing with the situation where you have to do a setup and teardown to make som... 阅读全文

posted @ 2014-12-03 16:01 joy.zhuang 阅读(141) 评论(0) 推荐(0)

Python中Non-ASCII character '\xe7' in file的问题解决
摘要:今天在windows下遇到的问题,这个是文件的编码问题,在.py文件的头部加上 #-*- coding: UTF-8 -*-来指定文件编码即可。 来自为知笔记(Wiz) 阅读全文

posted @ 2014-12-01 22:11 joy.zhuang 阅读(967) 评论(0) 推荐(0)

导航