Skip to content
  • About Me

charlie笔记

A programmer’s note boke for work and life

作者:test30307667

python字典get()方法用法分析

06 1月01 1月 by test30307667

本文实例讲述了python字典get()方法用法。分享给大家供大家参考。具体分析如下: 如果我们需要获取字典值 […]

Continue reading
Posted in 未分类 · Leave a comment

python多线程编程(五):死锁的形成

06 1月01 1月 by test30307667

前一篇文章python:使用threading模块实现多线程编程四[使用lock互斥锁]我们已经开始涉及到如何 […]

Continue reading
Posted in 未分类 · Leave a comment

python文档生成工具pydoc使用介绍

06 1月01 1月 by test30307667

在python中有很多很好的工具来生成字符串文档(docstring),比如说: epydoc、doxygen […]

Continue reading
Posted in 未分类 · Leave a comment

python实现分析apache和nginx日志文件并输出访客ip列表的方法

06 1月01 1月 by test30307667

本文实例讲述了python实现分析apache和nginx日志文件并输出访客ip列表的方法。分享给大家供大家参 […]

Continue reading
Posted in 未分类 · Leave a comment

python中使用pdb库调试程序

06 1月01 1月 by test30307667

python自带的pdb库,发现用pdb来调试程序还是很方便的,当然了,什么远程调试,多线程之类,pdb是搞不 […]

Continue reading
Posted in 未分类 · Leave a comment

python中urllib2模块的8个使用细节分享

05 1月01 1月 by test30307667

python 标准库中有很多实用的工具类,但是在具体使用时,标准库文档上对使用细节描述的并不清楚,比如 url […]

Continue reading
Posted in 未分类 · Leave a comment

python入门篇之函数

05 1月01 1月 by test30307667

pythond 的函数是由一个新的语句编写,即def,def是可执行的语句–函数并不存在,直到py […]

Continue reading
Posted in 未分类 · Leave a comment

python文件和输入输出小结

05 1月01 1月 by test30307667

1.打开和关闭文件(open(),file(),close()) 有两种内建函数可以获取文件对象:open和f […]

Continue reading
Posted in 未分类 · Leave a comment

在python中使用zlib模块进行数据压缩的教程

04 1月01 1月 by test30307667

python标准模块中,有多个模块用于数据的压缩与解压缩,如zipfile,gzip, bz2等等。上次介绍了 […]

Continue reading
Posted in 未分类 · Leave a comment

列举python中吸引人的一些特性

04 1月01 1月 by test30307667

这里我不讨论 python 的一些有用的库或者框架,只从语言本身,最小支持的情况下谈论这门语言本身。语言的发展 […]

Continue reading
Posted in 未分类 · Leave a comment

python中正则表达式的使用详解

04 1月01 1月 by test30307667

从学习python至今,发现很多时候是将python作为一种工具。特别在文本处理方面,使用起来更是游刃有余。 […]

Continue reading
Posted in 未分类 · Leave a comment

python切片和range()用法说明

03 1月01 1月 by test30307667

理解切片基本用法: 首先需要明白,可迭代对象,按照正数索引(正序)是从0开始的,按照负数索引(逆序)是从-1开 […]

Continue reading
Posted in 未分类 · Leave a comment

python复制目录结构脚本代码分享

03 1月01 1月 by test30307667

引言   有个需要,需要把某个目录下的目录结构进行复制,不要文件,当目录结构很少的时候可以手工去建立,当目录结 […]

Continue reading
Posted in 未分类 · Leave a comment

python中使用glob和rmtree删除目录子目录及所有文件的例子

03 1月01 1月 by test30307667

一、batch与shell中 目录及文件: 代码如下: c:\testfolder\test ├─test2 […]

Continue reading
Posted in 未分类 · Leave a comment

python抓取某汽车网数据解析html存入excel示例

02 1月01 1月 by test30307667

1、某汽车网站地址2、使用firefox查看后发现,此网站的信息未使用json数据,而是简单那的html页面而 […]

Continue reading
Posted in 未分类 · Leave a comment

python输出一个两行字符的变量

02 1月01 1月 by test30307667

今天遇到老朋友,就加了个/n 呵呵。比我的简单。 简单示例如下: >>> a=’aaa\nbbb& […]

Continue reading
Posted in 未分类 · Leave a comment

python常用的日期时间处理方法示例

02 1月01 1月 by test30307667

#-*- coding: utf-8 -*- import datetime #给定日期向后n天的日期 def […]

Continue reading
Posted in 未分类 · Leave a comment

讲解python中的递归函数

01 1月01 1月 by test30307667

在函数内部,可以调用其他函数。如果一个函数在内部调用自身本身,这个函数就是递归函数。 举个例子,我们来计算阶乘 […]

Continue reading
Posted in 未分类 · Leave a comment

使用python提取html文件中的特定数据的实现代码

31 12月01 1月 by test30307667

例如 具有如下结构的html文件 代码如下: æ„ […]

Continue reading
Posted in 未分类 · Leave a comment

python3.0字典key排序

31 12月01 1月 by test30307667

idle 3.0 >>> dic = {“aa”:1,”bb” […]

Continue reading
Posted in 未分类 · Leave a comment

python中文件操作简明介绍

30 12月01 1月 by test30307667

打开文件 open函数返回一个文件对象,基本语法: ●file_object = open(file_name […]

Continue reading
Posted in 未分类 · Leave a comment

python判断windows系统是32位还是64位的方法

30 12月01 1月 by test30307667

本文实例讲述了python判断windows系统是32位还是64位的方法。分享给大家供大家参考。具体分析如下: […]

Continue reading
Posted in 未分类 · Leave a comment

python让图片按照exif信息里的创建时间进行排序的方法

30 12月01 1月 by test30307667

本文实例讲述了python让图片按照exif信息里的创建时间进行排序的方法。分享给大家供大家参考。具体分析如下 […]

Continue reading
Posted in 未分类 · Leave a comment

详解python中的strftime()方法的使用

29 12月01 1月 by test30307667

strftime()方法转换成一个元组或struct_time表示时间所指定的格式参数所返回gmtime()或 […]

Continue reading
Posted in 未分类 · Leave a comment

python遍历zip文件输出名称时出现乱码问题的解决方法

28 12月01 1月 by test30307667

本文实例讲述了python遍历zip文件输出名称时出现乱码问题的解决方法。分享给大家供大家参考。具体如下: w […]

Continue reading
Posted in 未分类 · Leave a comment

详解python中的各种函数的使用

27 12月01 1月 by test30307667

函数是有组织的,可重复使用的代码,用于执行一个单一的,相关的动作的块。函数为应用程序和代码重用的高度提供了更好 […]

Continue reading
Posted in 未分类 · Leave a comment

pythonmultiprocessing.manager介绍和实例(进程间共享数据)

27 12月01 1月 by test30307667

python中进程间共享数据,处理基本的queue,pipe和value+array外,还提供了更高层次的封装 […]

Continue reading
Posted in 未分类 · Leave a comment

初步介绍python中的pydoc模块和distutils模块

27 12月01 1月 by test30307667

pydoc ka-ping yee 曾创建了一个相当著名的模块,名叫 pydoc (比较而言: pydoc 可 […]

Continue reading
Posted in 未分类 · Leave a comment

python读取注册表中值的方法

26 12月01 1月 by test30307667

在python的标准库中,_winreg.pyd可以操作windows的注册表,另外第三方的win32库封装了 […]

Continue reading
Posted in 未分类 · Leave a comment

下载糗事百科的内容

26 12月01 1月 by test30307667

代码如下: #coding:utf-8 import urllib.request import xml.do […]

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