Skip to content
  • About Me

charlie笔记

A programmer’s note boke for work and life

python算法学习之桶排序算法实例(分块排序)

12 9月10 11月 by helenadmin

代码如下: # -*- coding: utf-8 -*- def insertion_sort(a): &# […]

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查找第k小元素代码分享

12 9月10 11月 by helenadmin

代码如下: # -*- coding: utf-8 -*- from random import randin […]

Continue reading
Posted in Python · Leave a comment

pythonsocket网络编程步骤详解(socket套接字使用)

12 9月10 11月 by helenadmin

一、套接字套接字是为特定网络协议(例如tcp/ip,icmp/ip,udp/ip等)套件对上的网络应用程序提供 […]

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使用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线程锁(thread)学习示例

12 9月10 11月 by helenadmin

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

Continue reading
Posted in Python · Leave a comment

python三元运算符实现方法

12 9月10 11月 by helenadmin

这是今天在温习lambda表达式的时候想到的问题,众所周知c系列语言中的 三元运算符(?:)是一个非常好用的语 […]

Continue reading
Posted in Python · Leave a comment

python使用pyv8执行javascript代码示例分享

12 9月10 11月 by helenadmin

安装相应的库,我使用的是pyv8 需要注意的是里面写的function函数需要用()括起来 代码如下: imp […]

Continue reading
Posted in Python · Leave a comment

python使用reportlab画图示例(含中文汉字)

12 9月10 11月 by helenadmin

准备工作 开发环境:python2.6,reportlab 准备中文字体文件:simsun.ttc 代码: 代 […]

Continue reading
Posted in Python · Leave a comment

python计算程序开始到程序结束的运行时间和程序运行的cpu时间

12 9月10 11月 by helenadmin

执行时间 方法1 代码如下: import datetimestarttime = datetime.date […]

Continue reading
Posted in Python · Leave a comment

python33urllib2使用方法细节讲解

12 9月10 11月 by helenadmin

proxy 的设置 urllib2 默认会使用环境变量 http_proxy 来设置 http proxy。如 […]

Continue reading
Posted in Python · Leave a comment

python使用mysqldb连接数据库操作方法示例详解

12 9月10 11月 by helenadmin

代码如下: # -*- coding: utf-8 -*- #mysqldb import time, mys […]

Continue reading
Posted in Python · Leave a comment

二种python发送邮件实例讲解(python发邮件附件可以使用email模块实现)

12 9月10 11月 by helenadmin

可以使用python的email模块来实现带有附件的邮件的发送。 smtp (simple mail tran […]

Continue reading
Posted in Python · Leave a comment

python函数返回多个值的示例方法

12 9月10 11月 by helenadmin

python可以返回多个值,确实挺方便函数里的return只能返回一个值,但是返回类型是没是限制的因此,我们可 […]

Continue reading
Posted in Python · Leave a comment

使用setup.py安装python包和卸载python包的方法

12 9月10 11月 by helenadmin

我们使用 python setup.py install 来安装python包,但是如何卸载呢? 只能手动删除 […]

Continue reading
Posted in Python · Leave a comment

pyramid配置session的方法教程

12 9月01 1月 by

1. 使用默认的session, 在ini文件中: 代码如下: from pyramid.session im […]

Continue reading
Posted in 未分类 · Leave a comment

python实现问号表达式(?)的方法

12 9月10 11月 by helenadmin

python中的and和or和其它语言的区别很大其它语言中的and和or都是返回bool类型的结果,pytho […]

Continue reading
Posted in Python · Leave a comment

python时区设置方法与pytz查询时区教程

12 9月10 11月 by helenadmin

时区的概念与转换 首先要知道时区之间的转换关系,其实这很简单:把当地时间减去当地时区,剩下的就是格林威治时间了 […]

Continue reading
Posted in Python · Leave a comment

python装饰器使用方法实例

12 9月10 11月 by helenadmin

什么是python的装饰器? 网络上的定义:装饰器就是一函数,用来包装函数的函数,用来修饰原函数,将其重新赋值 […]

Continue reading
Posted in Python · Leave a comment

python自动化工具日志查询分析脚本代码实现

12 9月10 11月 by helenadmin

受控节点slave.py 代码如下: import socketimport reclass log(obje […]

Continue reading
Posted in Python · Leave a comment

python翻译软件实现代码(使用googleapi完成)

12 9月10 11月 by helenadmin

代码如下: # -*- coding: utf-8 -*- import httplibfrom urllib […]

Continue reading
Posted in Python · Leave a comment

python高并发异步服务器核心库forkcore使用方法

12 9月10 11月 by helenadmin

1 拷贝下面的代码到一个文件,并命名为forkcore.py 代码如下: import osimport th […]

Continue reading
Posted in Python · Leave a comment

python双向链表实现实例代码

12 9月10 11月 by helenadmin

示意图: python双向链表实现代码: 代码如下: #!/usr/bin/python# -*- codin […]

Continue reading
Posted in Python · Leave a comment

跨平台python异步回调机制实现和使用方法

12 9月10 11月 by helenadmin

1 将下面代码拷贝到一个文件,命名为asyncore.py 代码如下: import socketimport […]

Continue reading
Posted in Python · Leave a comment

python二叉树遍历的实现方法

12 9月10 11月 by helenadmin

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

Continue reading
Posted in Python · Leave a comment

python连接池实现示例程序

12 9月10 11月 by helenadmin

代码如下: import socketimport queueimport threading def wor […]

Continue reading
Posted in Python · Leave a comment

python冒泡排序算法的实现代码

12 9月10 11月 by helenadmin

1.算法描述:(1)共循环 n-1 次(2)每次循环中,如果 前面的数大于后面的数,就交换(3)设置一个标签, […]

Continue reading
Posted in Python · Leave a comment

python选择排序算法的实现代码

12 9月10 11月 by helenadmin

1.算法:对于一组关键字{k1,k2,…,kn}, 首先从k1,k2,…,kn中选择最小值,假如它是 kz,则 […]

Continue reading
Posted in Python · Leave a comment

文章导航

Previous 1 … 8 9 10 11 12 13 14 15 16 17 18 … 260 Next

近期文章

  • 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笔记 ·
程序猿 散文朗诵 鬼故事 佛学网