需求 加入我们需要处理一串个位数(0~9),奇数时需要循环打印它;偶数则等待对应时长并完成所有任务;0则是错误 […]
Continue reading月份:2016年2月
使用python网页文档处理脚本实例代码
嵌入式web服务器不同于传统服务器,web需要转换成数组格式保存在flash中,才方便lwip网络接口的调 […]
Continue readingpython获取指定时间段内的随机不重复时间点的实现代码
这篇文章介绍python获取指定时间段内的随机不重复时间点的实现代码 场景1:取n个07:30:00-09:3 […]
Continue reading使用python实现wc命令程序的功能的实例代码
这里使用了 python 的基本代码实现了 linux 系统下 wc 命令程序的基本功能。 #!/usr/bi […]
Continue reading使用python实现时间时分秒与秒数的互相转换方法
受到unix时间戳的启发,我发现时间转成秒数后会非常好处理,在程序当中不再是以字符串的形式处理,不管时间的加减 […]
Continue reading详解python日志打印和写入并发实现代码
大家一般都用logging日志打印,但logging是线程安全的,多进程也有很多介绍,引入一些文件锁,对log […]
Continue reading使用python将文件数据转换成二维列表的方法介绍
贴一个做数据清洗时写的代码, 做数据处理时,原文件数据在进行处理时需要转换成一定格式, 原始文件数据:123. […]
Continue reading如何使用python中朴素贝叶斯算法的介绍
这里再重复一下标题为什么是”使用”而不是”实现”: 首先,专业 […]
Continue readingpythonrsa加密解密和base64编解码介绍
最近有需求,需要研究一下rsa加密解密安全;在网上百度了一下例子文章,很少有文章介绍怎么保存、传输、打印加 […]
Continue readingpython标准库学习re模块的详细介绍
re模块提供了一系列功能强大的正则表达式(regular expression)工具,它们允许你快速检查给 […]
Continue readingpython内置iter函数详细介绍
英文文档: iter(object[, sentinel]) return an iterator objec […]
Continue readingpython内置issubclass函数的详细介绍
英文文档: issubclass(class, classinfo) return true if class […]
Continue readingpython内置isinstance函数详细介绍
英文文档: isinstance(object, classinfo) return true if the […]
Continue readingpython内置int函数详细介绍
英文文档: class int(x=0) class int(x, base=10) return an in […]
Continue readingpython格式化字符串的使用方法
一、格式化字符功能介绍 应用场景:一般在print的时候提供占位符;python中提供两种格式化字符串方式 […]
Continue readingpython基础循环的学习记录
一、while循环 如果条件成立(true),重复执行相同操作,条件不符合,跳出循环 while 循环条件 […]
Continue reading详解python的http代理
0x00 前言 大家对http代理应该都非常熟悉,它在很多方面都有着极为广泛的应用。http代理分为正向代理和 […]
Continue reading使用python获取当前日期的格式介绍
在python里如何获取当前的日期和时间呢?在python语言里,我们可以通过调用什么模块或者类函数来得到当前 […]
Continue readingpython学习基础基本数据类型介绍
一、 运算符 1、算数运算: ps: 示例1: python2.7示例 #!/usr/bin/env pyth […]
Continue readingpython魔术方法magicmethod的详细介绍
介绍 在python中,所有以“”双下划线包起来的方法,都统称为“magic method”,例如类的初始 […]
Continue readingpython内置input函数的详细介绍
英文文档: input([prompt]) if the prompt argument is present […]
Continue readingpython内置函数的详细介绍
总结一下内置函数,build-in function。 一、数学运算类 abs(x) 求绝对值 complex […]
Continue readingpython内置hex函数的详细介绍
英文文档: hex(x) convert an integer number to a lowercase h […]
Continue readingpython内置help函数的详细介绍
英文文档: help([object]) invoke the built-in help system. ( […]
Continue readingpython内置hash函数的详细介绍
英文文档: hash(object)return the hash value of the object ( […]
Continue readingpython内置hasattr函数的详细介绍
英文文档: hasattr(object, name) the arguments are an object […]
Continue readingpython内置globals函数的详细介绍
英文文档: globals() return a dictionary representing the cu […]
Continue readingpython内置getattr函数的详细介绍
英文文档: getattr(object, name[, default]) return the value […]
Continue readingpython内置frozenset函数的详细介绍
英文文档: class frozenset([iterable]) return a new frozense […]
Continue readingpython内置format函数详细介绍
英文文档: format(value[, format_spec]) convert a value to a […]
Continue reading