资源简介
python数据可视化编程实战(英文第二版)源代码
代码片段和文件信息
import sys
filename = sys.argv[1]
with open(filename ‘rb‘) as hugefile:
chunksize = 1000
readable = ‘‘
# if you want to stop after certain number of blocks
# put condition in the while
while hugefile:
# if you want to start not from 1st byte
# do a hugefile.seek(skipbytes) to skip
# skipbytes of bytes from the file start
start = hugefile.tell()
print “starting at:“ start
file_block = ‘‘ # holds chunk_size of lines
for _ in range(start start + chunksize):
line = hugefile.next()
file_block = file_block + line
print ‘file_block‘ type(file_block) file_block
readable = readable + file_block
# tell where are we in file
# file IO is usually buffered so tell() will not be precise for
# every read.
stop = hugefile.tell()
print ‘readable‘ type(readable) readable
print ‘reading bytes from %s to %s‘ % (start stop)
print ‘read bytes total:‘ len(readable)
raw_input()
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 15087 2015-11-23 13:20 PythonDataVisualizationCookbookSE_Code\B03772_Software_Hardware_List.docx
目录 0 2015-11-23 12:58 PythonDataVisualizationCookbookSE_Code\Chapter 02\
文件 1076 2013-02-16 15:50 PythonDataVisualizationCookbookSE_Code\Chapter 02\ch02-chunk-read.py
文件 710 2013-03-03 16:10 PythonDataVisualizationCookbookSE_Code\Chapter 02\ch02-clean-boxplot.py
文件 398 2013-03-03 16:48 PythonDataVisualizationCookbookSE_Code\Chapter 02\ch02-clean-log.py
文件 1311 2013-03-03 15:33 PythonDataVisualizationCookbookSE_Code\Chapter 02\ch02-clean-mad.py
文件 515 2013-01-27 17:32 PythonDataVisualizationCookbookSE_Code\Chapter 02\ch02-csvread.py
文件 287 2013-01-24 23:21 PythonDataVisualizationCookbookSE_Code\Chapter 02\ch02-csvwrite.py
文件 119 2013-01-27 16:47 PythonDataVisualizationCookbookSE_Code\Chapter 02\ch02-data.csv
文件 130 2013-02-05 00:54 PythonDataVisualizationCookbookSE_Code\Chapter 02\ch02-data.tab
文件 136 2013-02-05 01:42 PythonDataVisualizationCookbookSE_Code\Chapter 02\ch02-data-dirty.tab
文件 141 2013-01-24 23:21 PythonDataVisualizationCookbookSE_Code\Chapter 02\ch02-data-write.csv
文件 141 2013-02-05 01:13 PythonDataVisualizationCookbookSE_Code\Chapter 02\ch02-data-write.tab
文件 3322 2013-02-23 23:43 PythonDataVisualizationCookbookSE_Code\Chapter 02\ch02-export.py
文件 371 2013-02-04 23:58 PythonDataVisualizationCookbookSE_Code\Chapter 02\ch02-fixedwidth-read.py
文件 298 2013-02-04 23:42 PythonDataVisualizationCookbookSE_Code\Chapter 02\ch02-generate_f_data.py
文件 179 2013-02-25 21:43 PythonDataVisualizationCookbookSE_Code\Chapter 02\ch02-imgread-matplotlib.py
文件 129 2013-02-28 20:49 PythonDataVisualizationCookbookSE_Code\Chapter 02\ch02-imgshow-lena.py
文件 238 2015-06-11 13:18 PythonDataVisualizationCookbookSE_Code\Chapter 02\ch02-imgshow-pil.py
文件 538 2015-06-11 13:15 PythonDataVisualizationCookbookSE_Code\Chapter 02\ch02-imgshow-zoom.py
文件 150 2015-06-11 13:00 PythonDataVisualizationCookbookSE_Code\Chapter 02\ch02-jsonread-github.py
文件 291 2013-03-03 22:06 PythonDataVisualizationCookbookSE_Code\Chapter 02\ch02-noise-median-filter.py
文件 460 2013-03-03 22:31 PythonDataVisualizationCookbookSE_Code\Chapter 02\ch02-noise-moving-average.py
文件 2441 2013-03-03 21:23 PythonDataVisualizationCookbookSE_Code\Chapter 02\ch02-noise-scipy-smooth-1d.py
文件 3552 2013-03-03 12:09 PythonDataVisualizationCookbookSE_Code\Chapter 02\ch02-random-distributions.py
文件 572 2013-03-03 11:06 PythonDataVisualizationCookbookSE_Code\Chapter 02\ch02-random-random.py
文件 377 2013-03-02 16:33 PythonDataVisualizationCookbookSE_Code\Chapter 02\ch02-random-systemrandom.py
文件 440 2013-03-03 11:15 PythonDataVisualizationCookbookSE_Code\Chapter 02\ch02-random-timeseries.py
文件 562 2013-02-17 18:51 PythonDataVisualizationCookbookSE_Code\Chapter 02\ch02-sqlite-import.py
文件 688 2013-02-17 20:06 PythonDataVisualizationCookbookSE_Code\Chapter 02\ch02-sqlite-read.py
文件 744 2013-02-24 23:51 PythonDataVisualizationCookbookSE_Code\Chapter 02\ch02-stream-read-1.py
............此处省略96个文件信息
相关资源
- PyQt5 5.3.2 gpl Py3.4 Qt5.3.1 x32.exe
- Fundamentals of Python Data Structures
- python2.7+pyqt4超级文本工具开发代码经
- OPENCV入门书籍:opencv3机器视觉Python语
- Python深度学习.pdf
- 零起点Python大数据与量化交易高清书
- python mac包
- MDNet视频目标跟踪PyTorch源码Python 2.7版
- python 3.7.3262322
- Python编程从入门到实践(高清pdf+代码
- Win10X64 下 VS2017 编译的X64位 Caffe 静态
- Python3.7.332bit
- PTVS 2.1.1 for visual studio 2010201220132015
- Python编程:从入门到实践pdf书+源代码
- 父与子的编程之旅:与小卡特一起学
- Python核心编程第3版PDF高清晰完整中文
- 《Python神经网络编程》中文版PDF+英文
- python电子书大全
- 流畅的python 超高清完整版PDF
- python3.0菜鸟教程.zip
- Python爬虫开发与项目实战.mobi
- 人脸识别代码python
- 免费 Python项目开发实战第2版完整高清
- python编程指南
- keras 实现的表情识别
- Flask Web开发:基于Python的Web应用开发
- 自己编写的MNIST手写字Python实现
- python3.4 3.5 3.6 twisted适配windows
- Python 2.7 + QT4 1
- 《深度学习入门:基于Python的理论与
评论
共有 条评论