Skip to content
  • About Me

charlie笔记

A programmer’s note boke for work and life

作者:test31297505

python的collections模块中namedtuple结构使用示例

20 6月01 1月 by test31297505

namedtuple 就是命名的 tuple,比较像 c 语言中 struct。一般情况下的 tuple 是 […]

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

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

pythonpass详细介绍及实例代码

20 6月01 1月 by test31297505

python pass的用法: 空语句 do nothing 保证格式完整 保证语义完整 以if语句为例,在c […]

Continue reading
Posted in 未分类 · Leave a comment

python模块学习hashlib

20 6月01 1月 by test31297505

一、hashlib概述 涉及加密服务:14. cryptographic services 其中 hashli […]

Continue reading
Posted in 未分类 · Leave a comment

ubuntu12.0464位对python源代码编译详解

20 6月01 1月 by test31297505

ubuntu下python源代码编译 环境: ubuntu 12.04 64位 liaops@ay130611 […]

Continue reading
Posted in 未分类 · Leave a comment

在python中处理字符串之isdecimal()方法的使用

20 6月01 1月 by test31297505

isdecimal()方法检查字符串是否仅由十进制字符组成。此方法只存在于unicode对象。 注意:要定义一 […]

Continue reading
Posted in 未分类 · Leave a comment

python中取整的几种方法小结

20 6月01 1月 by test31297505

前言 对每位程序员来说,在编程过程中数据处理是不可避免的,很多时候都需要根据需求把获取到的数据进行处理,取整则 […]

Continue reading
Posted in 未分类 · Leave a comment

更改ubuntu默认python版本的两种方法python

20 6月01 1月 by test31297505

你可以按照以下方法使用 ls 命令来查看你的系统中都有那些 python 的二进制文件可供使用。 $ ls / […]

Continue reading
Posted in 未分类 · Leave a comment

python时间戳与格式化时间的转化实现代码

20 6月01 1月 by test31297505

python 里面与时间有关的模块主要是 time 和 datetime 如果想获取系统当前时间戳:time. […]

Continue reading
Posted in 未分类 · Leave a comment

python基础学习代码之错误和异常

20 6月01 1月 by test31297505

def func1(): try: return float(‘abc’) excep […]

Continue reading
Posted in 未分类 · Leave a comment

python对json的相关操作实例详解

20 6月01 1月 by test31297505

本文实例分析了python对json的相关操作。分享给大家供大家参考,具体如下: 什么是json: json( […]

Continue reading
Posted in 未分类 · Leave a comment

pythonfabric实现远程部署

20 6月01 1月 by test31297505

python fabric实现远程部署 需求描述 在多人协同开发项目的过程中,几乎每天我们都要提交代码到git […]

Continue reading
Posted in 未分类 · Leave a comment

python基础学习代码之执行环境

20 6月01 1月 by test31297505

class c(object): def __call__(self, *args, **kwargs): p […]

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

str1 = ‘abced’ for i in range(-1, -len(str1 […]

Continue reading
Posted in 未分类 · Leave a comment

python基础学习代码之文件和输入输出

20 6月01 1月 by test31297505

import os ls = os.linesep def func1(): filename = raw_i […]

Continue reading
Posted in 未分类 · Leave a comment

浅析python内置字符串处理函数的使用方法

20 6月01 1月 by test31297505

一、lower():将大写字母全部转为小写字母。如: 代码如下: name=’g’b= […]

Continue reading
Posted in 未分类 · Leave a comment

pythondatetime时间格式化去掉前导0

20 6月01 1月 by test31297505

python时间格式化的时候,去掉前导0的: dt = datetime.now() print dt.str […]

Continue reading
Posted in 未分类 · Leave a comment

教你安装pythondjango

20 6月01 1月 by test31297505

安装环境:python版本2.7.5 ,win7系统安装djangohttps://www.djangopro […]

Continue reading
Posted in 未分类 · Leave a comment

python语法练习

20 6月01 1月 by test31297505

#!/usr/bin/env python # -*- coding:utf8 -*- age = 26 fo […]

Continue reading
Posted in 未分类 · Leave a comment

【python教程】python元组

20 6月01 1月 by test31297505

python 元组 python的元组与列表类似,不同之处在于元组的元素不能修改。 元组使用小括号,列表使用方 […]

Continue reading
Posted in 未分类 · Leave a comment

python2.7基础教程之:输入输出

20 6月01 1月 by test31297505

.. _tut-io: ************************************* input […]

Continue reading
Posted in 未分类 · Leave a comment

python的继承与面向对象解析

20 6月01 1月 by test31297505

python编程语言是一款功能强大的开发语言,它的最大特点在于其简单易用。而且还具有面向对象特征,可以很好的帮 […]

Continue reading
Posted in 未分类 · Leave a comment

python对数据库操作

20 6月01 1月 by test31297505

windows下安装mysql-python 下载地址:https://pypi.python.org/pyp […]

Continue reading
Posted in 未分类 · Leave a comment

python语法练习

20 6月01 1月 by test31297505

#!/usr/bin/env python # -*- coding:utf8 -*- age = int(i […]

Continue reading
Posted in 未分类 · Leave a comment

python语法练习

20 6月01 1月 by test31297505

#!/usr/bin/env python # -*- coding:utf8 -*- name = inpu […]

Continue reading
Posted in 未分类 · Leave a comment

python时间操作例子和时间格式化参数小结

20 6月01 1月 by test31297505

1.取过去具体时间的方法: 代码如下: #!/usr/bin/python import time #取一天前 […]

Continue reading
Posted in 未分类 · Leave a comment

python时间处理datetime实例

20 6月01 1月 by test31297505

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

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