Skip to content
  • About Me

charlie笔记

A programmer’s note boke for work and life

月份:2016年3月

python中asyncore异步模块的用法及实现httpclient

15 3月01 1月 by test30418249

asyncore即是一个异步的socket封装,特别是dispatcher类中包含了很多异步调用的socket […]

Continue reading
Posted in 未分类 · Leave a comment

python字典(dict)按键和值排序

15 3月01 1月 by test30418249

下面小编就为大家带来一篇python 字典(dict)按键和值排序。小编觉得挺不错的,现在就分享给大家,也给大 […]

Continue reading
Posted in 未分类 · Leave a comment

python中scipy.misc.logsumexp函数的运用

15 3月01 1月 by test30418249

下面小编就为大家带来一篇浅谈python中scipy.misc.logsumexp函数的运用场景。小编觉得挺不 […]

Continue reading
Posted in 未分类 · Leave a comment

python中使用装饰器来优化尾递归

15 3月01 1月 by test30418249

这里我们用典型的斐波那契数列作为例子,来展示python中使用装饰器来优化尾递归的示例,需要的朋友可以参考下 […]

Continue reading
Posted in 未分类 · Leave a comment

python为什么不需要三目运算符和switch

15 3月01 1月 by test30418249

下面小编就为大家带来一篇浅谈python为什么不需要三目运算符和switch。小编觉得挺不错的,现在就分享给大 […]

Continue reading
Posted in 未分类 · Leave a comment

python运行时间的方法

15 3月01 1月 by test30418249

这篇文章主要为大家详细介绍了python运行时间的几种方法,分析每一种运行时间方法的利弊,感兴趣的小伙伴们可以 […]

Continue reading
Posted in 未分类 · Leave a comment

从局部变量和全局变量解析python中变量的作用域

15 3月01 1月 by test30418249

无论是以类为基础的面相对象编程,还是单纯函数内部变量的定义,变量的作用域始终是python学习中一个必须理解掌 […]

Continue reading
Posted in 未分类 · Leave a comment

python中global语句下全局变量的值的修改

15 3月01 1月 by test30418249

python的全局变量:int string, list, dic(map) 如果存在global就能够修改它 […]

Continue reading
Posted in 未分类 · Leave a comment

最大k个数问题的python版解法

15 3月01 1月 by test30418249

topk问题,即寻找最大的k个数,这个问题非常常见,比如从1千万搜索记录中找出最热门的10个关键词. 方法一: […]

Continue reading
Posted in 未分类 · Leave a comment

python中的多行注释文档编写风格

15 3月01 1月 by test30418249

什么是docstring 在软件工程中,其实编码所占的部分是非常小的,大多是其它的事情,比如写文档。文档是沟通 […]

Continue reading
Posted in 未分类 · Leave a comment

python构造自定义方法来美化字典结构输出

15 3月01 1月 by test30418249

示例: 代码如下: d = { “root”: { “folder2&#8 […]

Continue reading
Posted in 未分类 · Leave a comment

python中chr、unichr、ord字符函数之间的对比

15 3月01 1月 by test30418249

chr、unichr、ord在python中都可以被用作字符类型转换,这里我们就来浅谈python中chr、u […]

Continue reading
Posted in 未分类 · Leave a comment

python利用带权重随机数解决抽奖和游戏爆装备

15 3月01 1月 by test30418249

关于带权随机数 为了帮助理解,先来看三类随机问题的对比:1.已有n条记录,从中选取m条记录,选取出来的记录前后 […]

Continue reading
Posted in 未分类 · Leave a comment

python找出list中最常出现元素

15 3月01 1月 by test30418249

本文实例讲述了python找出list中最常出现元素的方法。分享给大家供大家参考,具体如下: 假设一个list […]

Continue reading
Posted in 未分类 · Leave a comment

python的django应用程序解决ajax跨域访问

15 3月01 1月 by test30418249

针对django中在编写供ajax调用的api时碰到的跨域问题,我们来总结下python的django应用程序 […]

Continue reading
Posted in 未分类 · Leave a comment

python语言使用技巧

15 3月01 1月 by test30418249

下面小编就为大家带来一篇python语言使用技巧分享。小编觉得挺不错的,现在就分享给大家,也给大家做个参考。一 […]

Continue reading
Posted in 未分类 · Leave a comment

windows安装virtualenv来创建独立python环境

15 3月01 1月 by test30418249

有时我们的程序中需要调用不同版本的python包和模块,那么借助virtualenv的虚拟环境就可以帮助我们隔 […]

Continue reading
Posted in 未分类 · Leave a comment

python中的浅拷贝和深拷贝

15 3月01 1月 by test30418249

在讲什么是深浅拷贝之前,我们先来看这样一个现象: a = [‘scolia’, 123 […]

Continue reading
Posted in 未分类 · Leave a comment

python的文件类型

15 3月01 1月 by test30418249

python的文件类型主要分为3种:源代码(source file)、字节码(byte-code file)、 […]

Continue reading
Posted in 未分类 · Leave a comment

python中string模块各属性以及函数的用法

15 3月01 1月 by test30418249

任何语言都离不开字符,那就会涉及对字符的操作,尤其是脚本语言更是频繁,不管是生产环境还是面试考验都要面对字符串 […]

Continue reading
Posted in 未分类 · Leave a comment

python常用string函数

15 3月01 1月 by test30418249

字符串中字符大小写的变换 1. str.lower() //小写 >>> ‘skate&#8217 […]

Continue reading
Posted in 未分类 · Leave a comment

浅析python继承问题

15 3月01 1月 by test30418249

这篇文章主要介绍了深入浅析python继承问题的相关资料,非常不错,感兴趣的朋友一起看看吧 有如下的代码: c […]

Continue reading
Posted in 未分类 · Leave a comment

python自动翻译实现

15 3月01 1月 by test30418249

本文实例讲述了python自动翻译实现方法。分享给大家供大家参考,具体如下: 以前学过python的基础,一般 […]

Continue reading
Posted in 未分类 · Leave a comment

python编程中对monkeypatch猴子补丁开发方式

15 3月01 1月 by test30418249

monkey patch猴子补丁方式是指在不修改程序原本代码的前提下,通过添加类或模块等方式在程序运行过程中加 […]

Continue reading
Posted in 未分类 · Leave a comment

python程序中的观察者模式结构编写

15 3月01 1月 by test30418249

察者模式定义 定义了对象之间的一对多依赖,这样一来,当一个对象改变状态时,它的所有依赖都会收到通知并自动更新。 […]

Continue reading
Posted in 未分类 · Leave a comment

python的re模块正则表达式操作

15 3月01 1月 by test30418249

这个模块提供了与 perl 相似l的正则表达式匹配操作。unicode字符串也同样适用。 正则表达式使用反斜杠 […]

Continue reading
Posted in 未分类 · Leave a comment

python的for和break循环结构中使用else语句

15 3月01 1月 by test30418249

平时我们把在if结构中使用else语句当作理所当然,然而,python强大的语法糖可以让else语句在for和 […]

Continue reading
Posted in 未分类 · Leave a comment

python写一个无界面的2048小游戏

15 3月01 1月 by test30418249

以前游戏2048火的时候,正好用其他的语言编写了一个,现在学习python,正好想起来,便决定用python写 […]

Continue reading
Posted in 未分类 · Leave a comment

python实现多线程的方式

15 3月01 1月 by test30418249

目前python 提供了几种多线程实现方式 thread,threading,multithreading , […]

Continue reading
Posted in 未分类 · Leave a comment

python实现简单购物商城

15 3月01 1月 by test30418249

本文为大家分享了购物商城小程序,供大家参考,具体内容如下 软件版本:python3.x功能:实现简单购物商城1 […]

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
© 2025 charlie笔记 ·