Skip to content
  • About Me

charlie笔记

A programmer’s note boke for work and life

月份:2016年6月

python的数字类型及其技巧

20 6月01 1月 by test31297505

python中的数字类型 intfloatfractions.fractiondecimal.decimal […]

Continue reading
Posted in 未分类 · Leave a comment

python数据结构——栈、队列的实现(一)

20 6月01 1月 by test31297505

1. 栈 栈(stack)是限制插入和删除操作只能在一个位置进行的表,该位置是表的末端,称为栈的顶(top)。 […]

Continue reading
Posted in 未分类 · Leave a comment

python数据结构——栈、队列的实现(二)

20 6月01 1月 by test31297505

1. 一个列表实现两个栈 class twostacks(object): def __init__(self […]

Continue reading
Posted in 未分类 · Leave a comment

python异常记录

20 6月01 1月 by test31297505

1.常用异常名 attributeerror 调用不存在的方法引发的异常。 eoferror 遇到文件末尾引发 […]

Continue reading
Posted in 未分类 · Leave a comment

c/c++中嵌入python

20 6月01 1月 by test31297505

在c/c++中嵌入python也比较简单,首先需要在vc中添加python的include文件目录和lib文件 […]

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

python模块学习logging

20 6月01 1月 by test31297505

1.简单的将日志打印到屏幕 import logginglogging.debug(‘this i […]

Continue reading
Posted in 未分类 · Leave a comment

eclipse配置python

20 6月01 1月 by test31297505

python安装成功后,即要配置开发环境,这里选用eclipse, 在eclipse中安装pydev插件,有多 […]

Continue reading
Posted in 未分类 · Leave a comment

pythonwebsocket实现扫码二维码登录

20 6月01 1月 by test31297505

最近在做一个扫码登录功能,为此我还在网上搜了一下关于微信的扫描登录的实现方式。当这个功能完成了后,我决定将整个 […]

Continue reading
Posted in 未分类 · Leave a comment

python字符串连接的n种方式总结

20 6月01 1月 by test31297505

python中有很多字符串连接方式,今天在写代码,顺便总结一下: 最原始的字符串连接方式:str1 + str […]

Continue reading
Posted in 未分类 · Leave a comment

python字符串操作方法大全

20 6月01 1月 by test31297505

1、去空格及特殊符号 代码如下: s.strip().lstrip().rstrip(‘,&#82 […]

Continue reading
Posted in 未分类 · Leave a comment

python实现文件夹同步

20 6月01 1月 by test31297505

定义syndirtool类,用于同步两个文件夹的内容,从/usr/local/a文件夹到/usr/local/ […]

Continue reading
Posted in 未分类 · Leave a comment

python二分法查找

20 6月01 1月 by test31297505

下面是一段用python实现的二分法查找代码 #encoding=utf-8 import sys def s […]

Continue reading
Posted in 未分类 · Leave a comment

sirius的python学习笔记(1)

20 6月01 1月 by test31297505

1、可以通过try…except语句来简单的判断字符串是否为整数值,如例程 x = raw_inp […]

Continue reading
Posted in 未分类 · Leave a comment

怒学python——第二篇——类型与运算

20 6月01 1月 by test31297505

python支持5种数据类型,包括数字(numbers)、字符串(string)、列表(list)、元组(tu […]

Continue reading
Posted in 未分类 · Leave a comment

怒学python——第四篇——函数与模块

20 6月01 1月 by test31297505

python的函数:其实和c++非常类似,不过由于是弱类型的语言(用起来感觉是……), […]

Continue reading
Posted in 未分类 · Leave a comment

pythontipsandtraps(一)

20 6月01 1月 by test31297505

1、如果想得到一个列表的index和内容,可以通过enumerate快速实现 drinks = [&#8216 […]

Continue reading
Posted in 未分类 · Leave a comment

pythontipsandtraps(二)

20 6月01 1月 by test31297505

6、collections 模块还提供有ordereddict,用于获取有序字典 import collect […]

Continue reading
Posted in 未分类 · Leave a comment

《python基础教程》笔记之其它语句1

20 6月01 1月 by test31297505

print 相关 print可以打印多个表达式,只要将它们用逗号隔开就好,结果中每个参数之间都会插入一个空格, […]

Continue reading
Posted in 未分类 · Leave a comment

《python基础教程》笔记之抽象

20 6月01 1月 by test31297505

创建函数 记录函数,在函数的开头写下字符串,它就会作为函数的一部分进行存储,这称为文档字符串,如 def sq […]

Continue reading
Posted in 未分类 · Leave a comment

python显示当前时间

20 6月01 1月 by test31297505

import time time.strftime(“%y%m%d %x”, time […]

Continue reading
Posted in 未分类 · Leave a comment

python快速教程(补充篇02):python小技巧

20 6月01 1月 by test31297505

import模块 在python经常使用import声明,以使用其他模块(也就是其它.py文件)中定义的对象。 […]

Continue reading
Posted in 未分类 · Leave a comment

python快速教程(补充篇03):python内置函数清单

20 6月01 1月 by test31297505

python内置(built-in)函数随着python解释器的运行而创建。在python的程序中,你可以随时 […]

Continue reading
Posted in 未分类 · Leave a comment

python快速教程(补充篇05):字符串格式化(%操作符)

20 6月01 1月 by test31297505

在许多编程语言中都包含有格式化字符串的功能,比如c和fortran语言中的格式化输入输出。python中内置有 […]

Continue reading
Posted in 未分类 · Leave a comment

飘逸的python

20 6月01 1月 by test31297505

首先我们来看一下字符串的朴素匹配. 可以想象成把文本串s固定住,模式串p从s最左边开始对齐,如果对齐的部分完全 […]

Continue reading
Posted in 未分类 · Leave a comment

第二章python数据类型

20 6月01 1月 by test31297505

第一节 数字和字符串类型 123和“123”一样吗 () [] {} 计算机是用来辅助人们的,在程序设计中也映 […]

Continue reading
Posted in 未分类 · Leave a comment

第三章python基础

20 6月01 1月 by test31297505

  花了一个星期多看了 《learn python the hard way》,只能说掌握了皮毛的皮毛,今天开 […]

Continue reading
Posted in 未分类 · Leave a comment

第四章python对象

20 6月01 1月 by test31297505

4.1 python 对象   所有的python 对像都拥有三个特性:身份,类型和值。身份:每一个对象都有一 […]

Continue reading
Posted in 未分类 · Leave a comment

第五章python数字

20 6月01 1月 by test31297505

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

Continue reading
Posted in 未分类 · Leave a comment

python中cookie的处理(一)cookie库

20 6月01 1月 by test31297505

cookie用于服务器实现会话,用户登录及相关功能时进行状态管理。要在用户浏览器上安装cookie,http服 […]

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