
Python
文章平均质量分 91
lazying_bird
菜鸟的私家学习笔记
展开
-
python-bool
QuestionFalse不是False,而是True!?原创 2017-11-21 21:20:47 · 927 阅读 · 0 评论 -
Python-字符串分割
split分割字符串原创 2016-11-05 21:46:14 · 529 阅读 · 0 评论 -
python-命令行传参
命令行传参原创 2016-11-05 13:29:08 · 1060 阅读 · 0 评论 -
Hello, Python!
第一个程序:Hello, Python!原创 2016-06-16 08:55:46 · 615 阅读 · 0 评论 -
Notepadpp批量转换文件格式
Notepad++批量转换文件编码格式原创 2016-04-27 18:32:39 · 3613 阅读 · 0 评论 -
Notepadpp的Python Script插件
这个插件除了运行通常的Python基本之外,还可以用Python脚本来自动化Notepad++的一些操作,从而可以简化某些工作。原创 2016-04-27 18:21:25 · 7637 阅读 · 0 评论 -
Python变量与数据类型
isinstance, type,即type的__name__属性原创 2016-04-11 18:24:43 · 550 阅读 · 0 评论 -
C中嵌入Python解释器
讨论C/C++中嵌入Python计算器的方法。原创 2016-04-08 12:01:27 · 5704 阅读 · 1 评论 -
python sys模块
记录sys模块的常用方法。原创 2016-04-08 09:15:08 · 569 阅读 · 0 评论 -
python随机数
记录随机数的用法。原创 2016-04-08 09:08:58 · 555 阅读 · 0 评论 -
bs4安装过程
这里描述Windows下面的安装过程。原创 2016-04-07 19:05:04 · 4810 阅读 · 1 评论 -
Python入门教程-13 for-in
for循环的使用方法。原创 2015-07-22 20:25:42 · 1030 阅读 · 0 评论 -
python脚本自动保存blog页面
自动保存博客页面的python脚本。原创 2015-07-26 22:23:27 · 1580 阅读 · 0 评论 -
python脚本替换文件名中的非法字母
Windows环境下,文件命名时,有些字符是不允许的。本文的脚本就是把一个文件名中的非法字符替换成某个指定字符。原创 2016-02-24 09:37:20 · 4037 阅读 · 0 评论 -
Python-正则表达式多次匹配
要点要查找所有匹配项,用findall函数。原创 2016-11-07 22:50:42 · 18137 阅读 · 0 评论 -
Python入门教程-12 正则表达式
正则表达式原创 2014-06-09 20:19:48 · 1132 阅读 · 0 评论 -
python-列表元素为元组
示例:构造一系列的元组对象,并添加到列表中。原创 2016-11-07 23:36:50 · 8264 阅读 · 0 评论 -
base64编解码
BASE64编解码的openssl命令和python代码原创 2017-08-04 20:32:21 · 638 阅读 · 0 评论 -
Python - 二进制码流的十六进制字符串
import binasciihex_digits = binascii.b2a_hex(bin_stream)原创 2017-08-04 20:23:05 · 4572 阅读 · 0 评论 -
protobuf - 多文件编译
对多个proto文件同时编译;指定include目录或out目录。原创 2017-08-10 22:41:10 · 9753 阅读 · 2 评论 -
protobuf - Python
Python代码使用protobuf的例子原创 2017-08-10 22:04:23 · 405 阅读 · 0 评论 -
protobuf - Compile Proto File
编译proto文件原创 2017-08-07 23:11:58 · 1509 阅读 · 0 评论 -
protobuf - Installation
protobuf原创 2017-08-07 22:38:50 · 717 阅读 · 0 评论 -
Python入门教程-11 xml解析(minidom)
python入门系列:利用xml.dom.minidom解析xml文件的操作步骤及示例。原创 2014-06-07 18:37:39 · 3071 阅读 · 0 评论 -
Python-List排序
Python列表list排序、倒序。原创 2017-02-11 17:02:14 · 544 阅读 · 0 评论 -
Python入门教程-06 字符串
1. Overview前面快速浏览了Python的运行环境原创 2014-04-20 14:56:48 · 1272 阅读 · 0 评论 -
Python入门教程-09 集合set
集合set对象的操作。原创 2014-06-07 18:07:32 · 1450 阅读 · 0 评论 -
Python入门教程-10 字典dictionary
dictionary原创 2014-06-07 18:08:41 · 749 阅读 · 0 评论 -
Python-小练习
小练习,内部使用。原创 2016-11-13 23:01:10 · 1249 阅读 · 0 评论 -
Python入门教程-07 列表list
介绍列表的使用方法。原创 2014-04-26 20:34:45 · 3046 阅读 · 0 评论 -
Python单元测试框架
介绍python单元测试框架unittest。原创 2015-07-23 21:20:21 · 707 阅读 · 0 评论 -
合并两个文本文件的内容
用python脚本合并两个文本文件。原创 2015-07-22 20:11:00 · 4413 阅读 · 0 评论 -
python解析网页时的错误(EOF in middle of construct)
python解析网页时的一种错误。原创 2015-07-29 22:19:15 · 1237 阅读 · 0 评论 -
Python的set使用方法
set的特点是:无序、元素唯一。参考:4. Built-in Types 4.9. Set Types — set, frozensetProgramming Python, 3rd Edition.chm:20.3. Implementing Sets; 第4版是第18章,下载链接:http://download.youkuaiyun.com/detail/DVD_01/3322原创 2014-03-02 11:32:39 · 1425 阅读 · 0 评论 -
Python入门教程-08 元组tuple
todo原创 2014-06-07 18:06:35 · 799 阅读 · 0 评论 -
Python入门教程-01 环境搭建
1. 概述从本期开始,系统地介绍Python的一些基础知识,作为入门系列教程。1.1 脚本语言Python称之为脚本语言,或解释性脚本语言。相对地,传统的、大家更为知晓的C或C++则是编译型语言,即首先通过编译&链接器,把源代码生成成可执行文件,然后再执行。而脚本语言则没有这个过程,是可以在命令行下面交互执行的,或者作为一个文件“批”执行。可以简单地认为脚本语言是一条条的命原创 2014-03-31 20:20:43 · 2260 阅读 · 0 评论 -
Python入门教程-05 休闲一刻 文件重命名示例
本文属于利用Python解决日常小问题的一个原创 2014-04-19 16:18:23 · 1849 阅读 · 0 评论 -
Python入门教程-02 变量
1. 代码示例继续上节给出的例子进行说明:flying-bird@flyingbird:~/examples/python$ cat test.py #!/usr/bin/env pythonx = 5y = 3z = x + yprint "%d + %d = %d\n" % (x, y, z)flying-bird@flyingbird:~/examples/pytho原创 2014-04-01 18:26:32 · 1417 阅读 · 0 评论 -
Python入门教程-04 再论函数
1. Overview在上一节中,我们简单原创 2014-04-13 17:37:11 · 1285 阅读 · 0 评论 -
Python入门教程-03 缩进、if-else,及函数定义
1. 目的本文讲解Python特有的代码z z原创 2014-04-13 14:48:26 · 3878 阅读 · 2 评论