Skip to content
  • About Me

charlie笔记

A programmer’s note boke for work and life

作者:test31297505

python用zip函数同时遍历多个迭代器示例详解

20 6月01 1月 by test31297505

前言 本文主要介绍的是python如何使用zip函数同时遍历多个迭代器,文中的版本为python3,zip函数 […]

Continue reading
Posted in 未分类 · Leave a comment

python知识总结

20 6月01 1月 by test31297505

python知识总结 一、python简介 1、python简介 python是一种解释型、交互式、面向对象、 […]

Continue reading
Posted in 未分类 · Leave a comment

深入理解python中的多线程新手必看

20 6月01 1月 by test31297505

示例1我们将要请求五个不同的url:单线程 import time import urllib2 defget […]

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

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

Continue reading
Posted in 未分类 · Leave a comment

pythonxml解析实例详解

20 6月01 1月 by test31297505

python xml解析 first.xml 1 fsy 24 2 jianjian 24 1000 from […]

Continue reading
Posted in 未分类 · Leave a comment

python与编码

20 6月01 1月 by test31297505

python中的文字对象 python 3.x中处理文字的对象有str, bytes, bytearray。 […]

Continue reading
Posted in 未分类 · Leave a comment

python入门学习之数据结构

20 6月01 1月 by test31297505

一 变量   python中的变量与c/c++中的变量不同。在c/c++中,变量的本质就是内存的地址,但在py […]

Continue reading
Posted in 未分类 · Leave a comment

第五章python数字

20 6月01 1月 by test31297505

5.1 数字类型  数字提供了标量贮存和直接访问。它是不可更改类型,也就是说变更数字的值会生成新的对象。当然, […]

Continue reading
Posted in 未分类 · Leave a comment

python时间处理datetime实例

20 6月01 1月 by test31297505

同时,关于datetime也是简单介绍。因为有很多东西需要自己去使用,去查帮助才最有效。例子:计算上一个星期五 […]

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

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

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

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

Continue reading
Posted in 未分类 · Leave a comment

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

20 6月01 1月 by test31297505

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

Continue reading
Posted in 未分类 · Leave a comment

pythontips

20 6月01 1月 by test31297505

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

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

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

Continue reading
Posted in 未分类 · Leave a comment

pythonmap、filter,reduce介绍

20 6月01 1月 by test31297505

1、filter(function,iterable) 引用 construct a list from th […]

Continue reading
Posted in 未分类 · Leave a comment

pythontime,datetime,string转换

20 6月01 1月 by test31297505

# 把datetime转成字符串 def datetime_tostring(dt): return dt.s […]

Continue reading
Posted in 未分类 · Leave a comment

python发送邮件smtplib

20 6月01 1月 by test31297505

可以利用smtplib模块来实现发送邮件的功能,一个比较简单的实例代码如下: # import smtplib […]

Continue reading
Posted in 未分类 · Leave a comment

redis

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学习——输入输出

20 6月01 1月 by test31297505

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

Continue reading
Posted in 未分类 · Leave a comment

python中bisect的用法

20 6月01 1月 by test31297505

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

Continue reading
Posted in 未分类 · Leave a comment

pythondjango|models

20 6月01 1月 by test31297505

学习大牛的网站: models类修改后数据库也应同样更新,但是syncdb命令仅仅创建数据库里的表,并不对数据 […]

Continue reading
Posted in 未分类 · Leave a comment

python字符串内建函数

20 6月01 1月 by test31297505

string.capitalize() 把字符串的第一个字符大写 string.center(width) 返 […]

Continue reading
Posted in 未分类 · Leave a comment

python常用函数

20 6月01 1月 by test31297505

一、数学相关 1、绝对值:abs(-1) 2、最大最小值:max([1,2,3])、min([1,2,3]) […]

Continue reading
Posted in 未分类 · Leave a comment

python时间格式化

20 6月01 1月 by test31297505

函 数strftime()的操作有些类似于sprintf():识别以百分号(%)开始的格式命令集合,格式化输出 […]

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

文章导航

先前文章
较新文章

近期文章

  • 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笔记 ·