Skip to content
  • About Me

charlie笔记

A programmer’s note boke for work and life

月份:2016年6月

pythontips

20 6月01 1月 by test31297505

1、enum python代码 #!/usr/bin/env python # -*- coding:utf- […]

Continue reading
Posted in 未分类 · Leave a comment

pythondecorators

20 6月01 1月 by test31297505

contains: 1、decorators 2、functools 首先我们看下tornado中使用的装饰器 […]

Continue reading
Posted in 未分类 · Leave a comment

python异步网络探

20 6月01 1月 by test31297505

异步网络据说能极大的提高网络server的连接速度,所以打算写一个专题,来学习和了解异步网络.因为python […]

Continue reading
Posted in 未分类 · Leave a comment

python内存释放原则

20 6月01 1月 by test31297505

def getinit(class_name): “””动态加载模块&#8 […]

Continue reading
Posted in 未分类 · Leave a comment

python中获取python版本号的方法

20 6月01 1月 by test31297505

最近在思考如何使用python做自动化测试的问题,没啥进展。感觉国内自动化测试ruby用的比较多,目前想做一件 […]

Continue reading
Posted in 未分类 · Leave a comment

python学习——python标准库

20 6月01 1月 by test31297505

python标准库 python标准库是随python附带安装的,它包含大量极其有用的模块。熟悉python标 […]

Continue reading
Posted in 未分类 · Leave a comment

python学习——异常

20 6月01 1月 by test31297505

异常 当你的程序中出现某些异常的状况的时候,异常就发生了。例如,当你想要读某个文件的时候,而那个文件不存在。或 […]

Continue reading
Posted in 未分类 · Leave a comment

python学习——输入输出

20 6月01 1月 by test31297505

输入输出 文件 你可以通过创建一个file类的对象来打开一个文件,分别使用file类的read、readlin […]

Continue reading
Posted in 未分类 · Leave a comment

python线程整理

20 6月01 1月 by test31297505

线程有五种状态 新建、就绪、运行、阻塞、死亡。 阻塞有三种情况: 同步阻塞是指处于竞争锁定的状态,线程请求锁定 […]

Continue reading
Posted in 未分类 · Leave a comment

pythonxapian存储结构

20 6月01 1月 by test31297505

在项目中为了支持搜索服务,我们使用xapian作为后端的搜索引擎.其因性能良好以及易用受到大家欢迎.下面是基本 […]

Continue reading
Posted in 未分类 · Leave a comment

python学习

20 6月01 1月 by test31297505

模块 简介 你已经学习了如何在你的程序中定义一次函数而重用代码。如果你想要在其他程序中重用很多函数,那么你该如 […]

Continue reading
Posted in 未分类 · Leave a comment

python修改文件

20 6月01 1月 by test31297505

#!/usr/bin/env python #coding=utf-8 import os import sy […]

Continue reading
Posted in 未分类 · Leave a comment

python读入文件和time/sys模块的简单使用

20 6月01 1月 by test31297505

python读入文件和time/sys模块的简单使用 一些标准库函数的用法也待学习,如:os/re/sets/ […]

Continue reading
Posted in 未分类 · Leave a comment

python模块

20 6月01 1月 by test31297505

模块:自我包含并且有组织的代码片段 导入(import):把其它模块中属性附加到你的模块的操作 imptee. […]

Continue reading
Posted in 未分类 · Leave a comment

python中的国际化使用

20 6月01 1月 by test31297505

# -*- coding: utf-8 -*- #!/usr/bin/env python ”&# […]

Continue reading
Posted in 未分类 · Leave a comment

pythongevent实现机制

20 6月01 1月 by test31297505

之前看的greenlet只是提供了基本的coroutine的作用,是最小的执行单元.但是要想使用,还需要提供一 […]

Continue reading
Posted in 未分类 · Leave a comment

pythongreenlet实现机制

20 6月01 1月 by test31297505

最近使用python开发web程序,一直使用的是fastcgi模式.然后每个进程中启动多个线程来进行请求处理. […]

Continue reading
Posted in 未分类 · Leave a comment

python分布式锁

20 6月01 1月 by test31297505

在进行某些比较耗时的查询时,为了避免进行重复计算,可以采用分布式锁服务, 在同一个时间只有一个操作在进行,同类 […]

Continue reading
Posted in 未分类 · Leave a comment

详解python的数字类型变量与其方法

20 6月01 1月 by test31297505

前言 python数据类型是不允许改变的,这就意味着如果改变 number 数据类型的值,将重新分配内存空间。 […]

Continue reading
Posted in 未分类 · Leave a comment

python实现简单爬虫功能

20 6月01 1月 by test31297505

  在我们日常上网浏览网页的时候,经常会看到一些好看的图片,我们就希望把这些图片保存下载,或者用户用来做桌面壁 […]

Continue reading
Posted in 未分类 · Leave a comment

零基础写python爬虫之使用scrapy框架编写爬虫

20 6月01 1月 by test31297505

网络爬虫,是在网上进行数据抓取的程序,使用它能够抓取特定网页的html数据。虽然我们利用一些库开发一个爬虫程序 […]

Continue reading
Posted in 未分类 · Leave a comment

python实现简单爬虫

20 6月01 1月 by test31297505

简介 爬虫是一段自动抓取互联网信息的程序。它的价值是互联网数据为我所有。利用爬取到的数据,可以做很多的事情如: […]

Continue reading
Posted in 未分类 · Leave a comment

一个有趣的python排序模块:bisect

20 6月01 1月 by test31297505

今天同事说到了一个python的排序模块bisect,觉得挺有趣的,跟大家分享分享。 先看看模块的结构: 可见 […]

Continue reading
Posted in 未分类 · Leave a comment

python中bisect的用法

20 6月01 1月 by test31297505

本文实例讲述了python中bisect的用法,是一个比较常见的实用技巧。分享给大家供大家参考。具体分析如下: […]

Continue reading
Posted in 未分类 · Leave a comment

python

20 6月01 1月 by test31297505

这个模块只有几个函数, 一旦决定使用二分搜索时,立马要想到使用这个模块  import bisect l = […]

Continue reading
Posted in 未分类 · Leave a comment

python中bisect模块用法实例

20 6月01 1月 by test31297505

本文实例讲述了python中bisect模块用法,分享给大家供大家参考。 具体方法分析如下: 这个模块只有几个 […]

Continue reading
Posted in 未分类 · Leave a comment

python中的bisect

20 6月01 1月 by test31297505

python 中的bisect用于操作排序的数组,比如你可以在向一个数组插入数据的同时进行排序。下面的代码演示 […]

Continue reading
Posted in 未分类 · Leave a comment

python模块介绍

20 6月01 1月 by test31297505

bisect –维护有序列表 目的:不需要每次调用sort的方式维护有序列表。 bisect模块实现了一个算法 […]

Continue reading
Posted in 未分类 · Leave a comment

python数组查找算法bisect二分查找插入

20 6月01 1月 by test31297505

1 实例 这个模块只有几个函数, 一旦决定使用二分搜索时,立马要想到使用这个模块  import bisect […]

Continue reading
Posted in 未分类 · Leave a comment

python开发bisect

20 6月01 1月 by test31297505

现在有如下的需求: ”’ 实现这样的一个功能: 对一个班级的学生的成绩做出一些评定,评 […]

Continue reading
Posted in 未分类 · 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
© 2026 charlie笔记 ·