随笔分类 -  python

摘要:第1章 文本1 第2章 数据结构55 第3章 算法103 第4章 日期和时间138 第5章 数学计算157 第6章 文件系统197 第7章 数据持久存储与交换267 第8章 数据压缩与归档340 第9章 加密378 第10章 进程与线程387 第11章 网络通信452 第12章 internet51 阅读全文
posted @ 2016-07-09 11:07 python挖掘 阅读(131) 评论(0) 推荐(0) 编辑
摘要:1. 切分文本 对于一个文本字符串,可以使用string.split()方法将其切分。 去掉标点符号,可以使用正则表示式来切分。自行学习re 去掉空字符串: 将字符串全部转换成大写:(转大写.upper(),转小写.lower()) 2. Ctypes 在python中创建和处理C数据 3. 提取字 阅读全文
posted @ 2016-07-09 11:03 python挖掘 阅读(270) 评论(0) 推荐(0) 编辑
摘要:str.capitalize() 首字母大写,其他小写 str.center(width[, fillchar]) Return centered in a string of length width. Padding is done using the specified fillchar(de 阅读全文
posted @ 2016-07-09 10:58 python挖掘 阅读(117) 评论(0) 推荐(0) 编辑
摘要:工厂函数set():去除重复数据 Python求幂运算 两种方式创建字典: 模块-命名空间、局部和全局命名空间 time: sleep(2) import time/from time import * random: randint(0,100)生成0-100随机整数,random(0,100)生 阅读全文
posted @ 2016-07-09 10:42 python挖掘 阅读(121) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示