随笔分类 -  Python

摘要:0 前言 系统:win7 64bit IDE : python(x,y) 2.7.6.1 IDE集成的解释器:Python 2.7.6 (default, Nov 10 2013, 19:24:18) [MSC v.1500 32 bit (Intel)] on win32 1 单继承 1.1 定义 阅读全文
posted @ 2016-09-03 23:06 .Think 阅读(16466) 评论(0) 推荐(0)
摘要:1 需求 在文件 h264.txt 中的数据如图1,读入该文件中的数据,然后将第1列的地址删除,然后将数据输出到h264_out.txt中: 图1 h264.txt 数据截图 图2 输出文件 h264_out.txt 数据截图 2 读取文件 try: filename = 'h264.txt' # 阅读全文
posted @ 2016-03-09 12:32 .Think 阅读(3956) 评论(0) 推荐(0)
摘要:阅读的书籍是: Python for Informatics: Exploring Information 网址: http://www.pythonlearn.com/book.php 编写的代码一: 1 fhand = open('mbox-short.txt') 2 for line in f 阅读全文
posted @ 2016-03-02 20:02 .Think 阅读(461) 评论(0) 推荐(0)