Skip to content
  • About Me

charlie笔记

A programmer’s note boke for work and life

python函数

20 6月01 1月 by test31297505

classmethod(function) 中文说明: classmethod是用来指定一个类的方法为类方法, […]

Continue reading
Posted in 未分类 · Leave a comment

python函数

20 6月01 1月 by test31297505

chr(i) 中文说明: 返回整数i对应的ascii字符。与ord()作用相反。 参数x:取值范围[0, 25 […]

Continue reading
Posted in 未分类 · Leave a comment

python函数

20 6月01 1月 by test31297505

callable(object) 中文说明:检查对象object是否可调用。如果返回true,object仍然 […]

Continue reading
Posted in 未分类 · Leave a comment

python函数

20 6月01 1月 by test31297505

bytearray([source [, encoding [, errors]]]) 中文说明: bytea […]

Continue reading
Posted in 未分类 · Leave a comment

python函数

20 6月01 1月 by test31297505

bool([x]) 英文说明:convert a value to a boolean, using the […]

Continue reading
Posted in 未分类 · Leave a comment

python函数

20 6月01 1月 by test31297505

《python函数每日一讲》专题上周一直在和大家分享python的内置函数,都是按照字母排序来讲解的,但是上周 […]

Continue reading
Posted in 未分类 · Leave a comment

python函数

20 6月01 1月 by test31297505

basestring() 说明:basestring是str和unicode的超类(父类),也是抽象类,因此不 […]

Continue reading
Posted in 未分类 · Leave a comment

python函数

20 6月01 1月 by test31297505

any(iterable) 版本:该函数适用于2.5以上版本,兼容python3版本。 说明:如果iterab […]

Continue reading
Posted in 未分类 · Leave a comment

python函数

20 6月01 1月 by test31297505

all(iterable) 版本:该函数在python2.5版本首次出现,适用于2.5以上版本,包括pytho […]

Continue reading
Posted in 未分类 · Leave a comment

python函数

20 6月01 1月 by test31297505

从今天开始,我会每天更新一个python函数,并附带实例及函数使用时的注意点。我给这个函数专题起了个名字叫“p […]

Continue reading
Posted in 未分类 · Leave a comment

round四舍五入详解

20 6月01 1月 by test31297505

round()方法返回 数值 的小数点四舍五入到n个数字。 语法 以下是round()方法的语法: round […]

Continue reading
Posted in 未分类 · Leave a comment

python使用struct处理二进制(pack和unpack用法)

20 6月01 1月 by test31297505

有的时候需要用python处理二进制数据,比如,存取文件,socket操作时.这时候,可以使用python的s […]

Continue reading
Posted in 未分类 · Leave a comment

python网络编程——io多路复用之epoll

20 6月01 1月 by test31297505

什么是epoll epoll是什么?在linux的网络编程中,很长的时间都在使用select来做事件触发。在l […]

Continue reading
Posted in 未分类 · Leave a comment

python中星号变量的几种特殊用法

20 6月01 1月 by test31297505

在python中星号除了用于乘法数值运算和幂运算外,还有一种特殊的用法”在变量前添加单个星号或两个 […]

Continue reading
Posted in 未分类 · Leave a comment

python进阶之socket详解

20 6月01 1月 by test31297505

socket的英文原义是“孔”或“插座”。作为bsd unix的进程通信机制,通常也称作”套接字& […]

Continue reading
Posted in 未分类 · Leave a comment

详解python的super()的作用和原理

20 6月01 1月 by test31297505

python中对象方法的定义很怪异,第一个参数一般都命名为self(相当于其它语言的this),用于传递对象本 […]

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模块与python自带的模块分开存放以达到便于维护的目的。那么如何在py […]

Continue reading
Posted in 未分类 · Leave a comment

python设计模式之"外观模式"实例讲解

20 6月01 1月 by test31297505

python中设计模式之外观模式主张以分多模块进行代码管理而减少耦合,下面用实例来进行说明。 应用特性: 在很 […]

Continue reading
Posted in 未分类 · Leave a comment

python列表排序方法reverse、sort、sorted详解

20 6月01 1月 by test31297505

python语言中的列表排序方法有三个:reverse反转/倒序排序、sort正序排序、sorted可以获取排 […]

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字符串连接的方法,一般有以下三种: 方法1:直接通过加号(+)操作符连接 website = &# […]

Continue reading
Posted in 未分类 · Leave a comment

python准确判断文件类型

20 6月01 1月 by test31297505

判断文件类型在开发中非常常见的需求,怎样才能准确的判断文件类型呢?首先大家想到的是文件的后缀,但是非常遗憾的是 […]

Continue reading
Posted in 未分类 · Leave a comment

如何让你的python代码更加pythonic?

20 6月01 1月 by test31297505

pythonic如果翻译成中文的话就是很python。很+名词结构的用法在中国不少,比如:很娘,很国足,很cc […]

Continue reading
Posted in 未分类 · Leave a comment

详解python包管理器pip安装

20 6月01 1月 by test31297505

pip对于使用python的朋友并不陌生,当你想安装python模块的时候一定会首先想到它。pip 是一个安装 […]

Continue reading
Posted in 未分类 · Leave a comment

深刻理解python中的元类(metaclass)

20 6月01 1月 by test31297505

译注:这是一篇在stack overflow上很热的帖子。提问者自称已经掌握了有关python oop编程中的 […]

Continue reading
Posted in 未分类 · Leave a comment

python的名字绑定

20 6月01 1月 by test31297505

python的名字绑定 在python中,对象是通过名字进行关联和引用的。python通过名字绑定操作来引入名 […]

Continue reading
Posted in 未分类 · Leave a comment

python代码规范利器flake8

20 6月01 1月 by test31297505

写代码其实是需要规范的,团队中更是如此;不然 google 也不会发布各种编码规范,耳熟能详的有google […]

Continue reading
Posted in 未分类 · Leave a comment

pythonurllib2详解及实例

20 6月01 1月 by test31297505

urllib2是python的一个获取urls(uniform resource locators)的组件。他 […]

Continue reading
Posted in 未分类 · Leave a comment

python解析配置模块之configparser详解

20 6月01 1月 by test31297505

1.基本的读取配置文件 -read(filename) 直接读取ini文件内容 -sections() 得到所 […]

Continue reading
Posted in 未分类 · Leave a comment

文章导航

Previous 1 … 136 137 138 139 140 141 142 143 144 145 146 … 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笔记 ·
程序猿 散文朗诵 鬼故事 佛学网