- 博客(6)
- 收藏
- 关注
原创 将datalogger记录文件转换为canalyser可读取.asc文件
import osimport time# New add feature, use this to list all *.mel file in current folder, Ver 0.80 2014-1-21 by Homerimport glob# Redirection the work space path.path_cwd = os.getcwd()
2016-11-24 13:28:47
4091
转载 Python学习路线图
谈到学习路线,入门是基础课。基本上,熟练掌握Python入门指南即可。其次,要想更进一步,需要熟读官方文档,掌握各种内置函数、标准库等知识。关于两者,英文不好的鱼油们可以关Python中文官方文档板块,也欢迎有余力的鱼油加入我们的团队。关于Python的奇淫技巧,可以看《Effective Python:编写高质量Python代码的59个有效方法》这本书。
2016-11-21 13:26:58
11614
转载 Python的编码注释# -*- coding:utf-8 -*-
如果要在python2的py文件里面写中文,则必须要添加一行声明文件编码的注释,否则python2会默认使用ASCII编码。[python] view plain copy# -*- coding:utf-8 -*- 问题就来了,为什么要如此声明?首先请参考Python的PEP http://www.pyth
2016-11-17 21:10:33
638
原创 基于python的煎蛋网静态页面妹子图爬取
import urllib.requestimport reresponse = urllib.request.urlopen("http://jandan.net/ooxx")html=response.read().decode('utf-8') #decode:解码,转换成Unicode编码p=r'imglist=re.findall(p,html)for each
2016-11-17 15:07:52
495
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人