Skip to content
  • About Me

charlie笔记

A programmer’s note boke for work and life

作者:helenadmin

pythonurllib模块urlopen()与urlretrieve()详解

18 9月10 11月 by helenadmin

1.urlopen()方法urllib.urlopen(url[, data[, proxies]]) :创建 […]

Continue reading
Posted in Python · Leave a comment

python调用shell的方法

18 9月10 11月 by helenadmin

1.1 os.system(command)在一个子shell中运行command命令,并返回command命 […]

Continue reading
Posted in Python · Leave a comment

python线程池的实现实例

17 9月10 11月 by helenadmin

直接上代码: 代码如下: # -*- coding: utf-8 -*- import queue impor […]

Continue reading
Posted in Python · Leave a comment

python快速排序代码实例

17 9月10 11月 by helenadmin

一、 算法描述: 1.先从数列中取出一个数作为基准数。2.分区过程,将比这个数大的数全放到它的右边,小于或等于 […]

Continue reading
Posted in Python · Leave a comment

python错误和异常小结

17 9月10 11月 by helenadmin

事先说明哦,这不是一篇关于python异常的全面介绍的文章,这只是在学习python异常后的一篇笔记式的记录和 […]

Continue reading
Posted in Python · Leave a comment

python使用pyfetion来发送短信的例子

16 9月10 11月 by helenadmin

通过pyfetion可以很方便的使用python来用飞信发送短信,下面贴出代码: 代码如下: from fet […]

Continue reading
Posted in Python · Leave a comment

python读写excel文件的实例

16 9月10 11月 by helenadmin

最近由于经常要用到excel,需要根据excel表格中的内容对一些apk进行处理,手动处理很麻烦,于是决定写脚 […]

Continue reading
Posted in Python · Leave a comment

python批量导出导入mysql用户的方法

16 9月10 11月 by helenadmin

数据库迁移(a -> b),需要把用户也迁移过去,而用户表(mysql.user)有上百个用户。有2种方法进行 […]

Continue reading
Posted in Python · Leave a comment

python网络编程之tcp通信实例和socketserver框架使用例子

16 9月10 11月 by helenadmin

1.tcp是一种面向连接的可靠地协议,在一方发送数据之前,必须在双方之间建立一个连接,建立的过程需要经过三次握 […]

Continue reading
Posted in Python · Leave a comment

python中精确输出json浮点数的方法

16 9月10 11月 by helenadmin

有时需要在json中使用浮点数,比如价格、坐标等信息。但python中的浮点数相当不准确, 例如下面的代码: […]

Continue reading
Posted in Python · Leave a comment

python网络编程示例(客户端与服务端)

16 9月10 11月 by helenadmin

client客户端 代码如下: if __name__ == ‘__main__’: […]

Continue reading
Posted in Python · Leave a comment

python操作json数据的一个简单例子

16 9月10 11月 by helenadmin

更多的信息,可以参考python内部的json文档: python>>> help(json) 或者官方文档: […]

Continue reading
Posted in Python · Leave a comment

用python脚本生成androidsalt扰码的方法

15 9月10 11月 by helenadmin

代码如下: #!/usr/bin/python # filename: gen_salt.py import […]

Continue reading
Posted in Python · Leave a comment

讲解python参数和作用域的使用

15 9月10 11月 by helenadmin

本文会介绍如何将语句组织成函数,还会详细介绍参数和作用域的概念,以及递归的概念及其在程序中的用途。一. 创建函 […]

Continue reading
Posted in Python · Leave a comment

python实现代理服务功能实例

15 9月10 11月 by helenadmin

代理服务原理很简单,就拿浏览器与web服务器来说。无非是a浏览器发request给b代理,b代理再把reque […]

Continue reading
Posted in Python · Leave a comment

python列表与元组详解实例

14 9月10 11月 by helenadmin

在这章中引入了数据结构的概念。数据结构是通过某种方式组织在一起的数据元素的集合。在python中,最基本的数据 […]

Continue reading
Posted in Python · Leave a comment

python变量类型及命名规则介绍

14 9月10 11月 by helenadmin

首字母为英文和下划线,其它部分则可以是英文、数字和下划线(即:_),而变量名称是区分大小写,即变量temp与t […]

Continue reading
Posted in Python · Leave a comment

python版的文曲星猜数字游戏代码

13 9月10 11月 by helenadmin

代码如下: # -*- coding: utf-8 -*- import random #数字类class n […]

Continue reading
Posted in Python · Leave a comment

python字符串操作实现代码(截取/替换/查找/分割)

13 9月10 11月 by helenadmin

python 截取字符串使用 变量[头下标:尾下标],就可以截取相应的字符串,其中下标是从0开始算起,可以是正 […]

Continue reading
Posted in Python · Leave a comment

python读取androidpermission文件

13 9月10 11月 by helenadmin

今天用python解析一个文本文件,格式如下: 代码如下: [ { “key”:&#8 […]

Continue reading
Posted in Python · Leave a comment

python创建和使用字典实例详解

13 9月10 11月 by helenadmin

字典是python中唯一内建的映射类型。字典中的值并没有特殊的顺序,但是都存储在一个特定的键(key)里。键可 […]

Continue reading
Posted in Python · Leave a comment

python使用xmlrpc实例讲解

12 9月10 11月 by helenadmin

rpc是remote procedure call的缩写,翻译成中文就是远程方法调用,是一种在本地的机器上调用 […]

Continue reading
Posted in Python · Leave a comment

树莓派中python获取gy

12 9月10 11月 by helenadmin

先看效果图

Continue reading
Posted in Python · Leave a comment

python使用urllib2模块获取gravatar头像实例

12 9月10 11月 by helenadmin

gravatar注册地址: https://en.gravatar.com/ 代码如下: “&#8 […]

Continue reading
Posted in Python · Leave a comment

python线程锁(thread)学习示例

12 9月10 11月 by helenadmin

代码如下: # encoding: utf-8import threadimport time# 一个用于在线 […]

Continue reading
Posted in Python · Leave a comment

netbeans7安装python插件的方法图解

12 9月10 11月 by helenadmin

我们可以手动来添加地址和安装。如图所示: 方法:netbeans界面,“工具”->“插件”, 点击“设置”-> […]

Continue reading
Posted in Python · Leave a comment

python模块restful使用方法实例

12 9月10 11月 by helenadmin

restful架构,目前是比较流行的一种互联网软件架构。rest,即representational stat […]

Continue reading
Posted in Python · Leave a comment

python实现目录树生成示例

12 9月10 11月 by helenadmin

代码如下: #!/usr/bin/env python# -*- coding: utf-8 -*-impor […]

Continue reading
Posted in Python · Leave a comment

python爬虫框架scrapy安装使用步骤

12 9月10 11月 by helenadmin

一、爬虫框架scarpy简介scrapy 是一个快速的高层次的屏幕抓取和网页爬虫框架,爬取网站,从网站页面得到 […]

Continue reading
Posted in Python · Leave a comment

python实现猜数字游戏(无重复数字)示例分享

12 9月10 11月 by helenadmin

代码如下: import time, random class guessnum: def __init__( […]

Continue reading
Posted in Python · Leave a comment

文章导航

先前文章
较新文章

近期文章

  • 15款互联网人必备的AI工具,效率提升2倍
  • 多个ChatGPT通用指令
  • Python采集biaozhun政府文件
  • TensorFlow库:Python中的深度学习
  • python 本地密码管理应用

近期评论

  • helenadmin发表在《Python采集biaozhun政府文件》
  • helenadmin发表在《写给程序员的一封公开信》
  • Google发表在《About Me》
  • helenadmin发表在《ES(ElasticSearch)分布式全文搜索引擎及使用方式》
  • buy viagra发表在《About Me》

文章归档

  • 2024年12月
  • 2024年9月
  • 2024年6月
  • 2024年5月
  • 2024年3月
  • 2024年2月
  • 2024年1月
  • 2023年12月
  • 2023年11月
  • 2023年10月
  • 2023年9月
  • 2023年8月
  • 2023年7月
  • 2023年6月
  • 2023年5月
  • 2023年4月
  • 2023年3月
  • 2023年2月
  • 2023年1月
  • 2022年12月
  • 2022年8月
  • 2022年7月
  • 2022年6月
  • 2022年5月
  • 2022年4月
  • 2022年3月
  • 2022年2月
  • 2022年1月
  • 2021年12月
  • 2021年11月
  • 2021年10月
  • 2021年9月
  • 2021年8月
  • 2021年7月
  • 2021年6月
  • 2021年5月
  • 2021年4月
  • 2021年3月
  • 2021年1月
  • 2020年12月
  • 2020年11月
  • 2020年10月
  • 2020年9月
  • 2020年8月
  • 2020年7月
  • 2020年6月
  • 2020年5月
  • 2020年4月
  • 2020年3月
  • 2020年2月
  • 2020年1月
  • 2019年12月
  • 2019年11月
  • 2019年10月
  • 2019年9月
  • 2019年8月
  • 2019年7月
  • 2019年6月
  • 2019年5月
  • 2019年4月
  • 2019年3月
  • 2019年2月
  • 2019年1月
  • 2018年12月
  • 2018年11月
  • 2018年10月
  • 2018年9月
  • 2018年7月
  • 2018年6月
  • 2018年3月
  • 2018年2月
  • 2018年1月
  • 2017年12月
  • 2017年11月
  • 2017年10月
  • 2017年9月
  • 2017年8月
  • 2017年7月
  • 2017年6月
  • 2017年5月
  • 2017年4月
  • 2017年3月
  • 2017年1月
  • 2016年12月
  • 2016年11月
  • 2016年10月
  • 2016年9月
  • 2016年8月
  • 2016年7月
  • 2016年6月
  • 2016年5月
  • 2016年4月
  • 2016年3月
  • 2016年2月
  • 2015年8月
  • 2015年7月
  • 2015年6月
  • 2015年5月
  • 2014年7月
  • 2014年6月
  • 2014年5月
  • 1970年1月

分类目录

  • Database
  • focus—-实时热搜
  • IC设计
  • js&jquery
  • PHP
  • Python
  • 新技术研习
  • 服务器相关技术
  • 算法
  • 缓存技术
  • 随笔

功能

  • 注册
  • 登录
  • 文章RSS
  • 评论RSS
  • WordPress.org
© 2025 charlie笔记 ·