Skip to content
  • About Me

charlie笔记

A programmer’s note boke for work and life

月份:2016年6月

python四种数值类型(int,long,float,complex)区别及转换

20 6月01 1月 by test31297505

python支持四种不同的数值类型,包括int(整数)long(长整数)float(浮点实际值)complex […]

Continue reading
Posted in 未分类 · Leave a comment

python不同进制之间的转换

20 6月01 1月 by test31297505

不同的进制 二进制 0b101 以数字0和字母b打头的表示二进制数 如果出现大于等于2的数 会抛出syntax […]

Continue reading
Posted in 未分类 · Leave a comment

python中运算符"=="和"is"的差别分析

20 6月01 1月 by test31297505

前言 在讲is和==这两种运算符区别之前,首先要知道python中对象包含的三个基本要素,分别是:id(身份标 […]

Continue reading
Posted in 未分类 · Leave a comment

python五点搞定作用域

20 6月01 1月 by test31297505

1、块级作用域 想想此时运行下面的程序会有输出吗?执行会成功吗? #块级作用域 if 1 == 1: name […]

Continue reading
Posted in 未分类 · Leave a comment

python强大的字符串格式化函数

20 6月01 1月 by test31297505

自python2.6开始,新增了一种格式化字符串的函数str.format(),可谓威力十足。那么,他跟之前的 […]

Continue reading
Posted in 未分类 · Leave a comment

python操作cookie之cookielib模块

20 6月01 1月 by test31297505

cookielib是一个自动处理cookies的模块,如果我们在使用爬虫等技术的时候需要保存cookie,那么 […]

Continue reading
Posted in 未分类 · Leave a comment

详解python中open()函数指定文件打开方式的用法

20 6月01 1月 by test31297505

当我们用open()函数去打开文件的时候,有好几种打开的模式。 ‘r’->只读 &#8 […]

Continue reading
Posted in 未分类 · Leave a comment

python爬虫使用代理proxy抓取网页

20 6月01 1月 by test31297505

代理类型(proxy):透明代理 匿名代理 混淆代理和高匿代理. 这里写一些python爬虫使用代理的知识, […]

Continue reading
Posted in 未分类 · Leave a comment

深入理解python生成器(generator)

20 6月01 1月 by test31297505

我们可以通过列表生成式简单直接地创建一个列表,但是受到内存限制,列表容量肯定是有限的。而且,创建一个包含100 […]

Continue reading
Posted in 未分类 · Leave a comment

详解python的*args和**kwargs

20 6月01 1月 by test31297505

*args表示任何多个无名参数,它是一个tuple;**kwargs表示关键字参数,它是一个dict。 def […]

Continue reading
Posted in 未分类 · Leave a comment

深入分析python的andor返回值

20 6月01 1月 by test31297505

在python 中,and 和 or 执行布尔逻辑演算,如你所期待的一样,但是它们并不返回布尔值;而是,返回它 […]

Continue reading
Posted in 未分类 · Leave a comment

python进程、线程、协程详解

20 6月01 1月 by test31297505

进程与线程的历史 我们都知道计算机是由硬件和软件组成的。硬件中的cpu是计算机的核心,它承担计算机的所有任务。 […]

Continue reading
Posted in 未分类 · Leave a comment

python:tornado+wsgi异步处理请求

20 6月01 1月 by test31297505

tornado版本: start_app.py java代码 # coding:gbk import torn […]

Continue reading
Posted in 未分类 · Leave a comment

python如何嵌入c/c++进行开发

20 6月01 1月 by test31297505

如果你想把python嵌入c/c++中是比较简单的事情,你需要的是在vc中添加python的include文件 […]

Continue reading
Posted in 未分类 · Leave a comment

python实现tcp/ip协议下的端口转发及重定向示例

20 6月01 1月 by test31297505

首先,我们用webpy写一个简单的网站,监听8080端口,返回“hello, everet.org”的页面。 […]

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

在开发上传服务时,经常需要对上传的文件进行过滤。 本文为大家提供了python通过文件头判断文件类型的方法,非 […]

Continue reading
Posted in 未分类 · Leave a comment

开发中常遇到的python陷阱和注意点

20 6月01 1月 by test31297505

最近使用python的过程中遇到了一些坑,例如用datetime.datetime.now()这个可变对象作为 […]

Continue reading
Posted in 未分类 · Leave a comment

python随机生成验证码的两种方法

20 6月01 1月 by test31297505

python随机生成验证码的方法有很多,今天给大家列举两种,大家也可以在这个基础上进行改造,设计出适合自己的验 […]

Continue reading
Posted in 未分类 · Leave a comment

python使用signal模块实现定时执行

20 6月01 1月 by test31297505

在liunx系统中要想每隔一分钟执行一个命令,最普遍的方法就是crontab了,如果不想使用crontab,经 […]

Continue reading
Posted in 未分类 · Leave a comment

实战python实现bt种子转化为磁力链接

20 6月01 1月 by test31297505

经常看电影的朋友肯定对bt种子并不陌生,但是bt种子文件相对磁力链来说存储不方便,而且在网站上存放bt文件容易 […]

Continue reading
Posted in 未分类 · Leave a comment

python中的

20 6月01 1月 by test31297505

看到python中有个函数名比较奇特,__init__我知道加下划线的函数会自动运行,但是不知道它存在的具体意 […]

Continue reading
Posted in 未分类 · Leave a comment

python时间处理详解

20 6月01 1月 by test31297505

1.获取当前时间的两种方法: import datetime,time now = time.strftime […]

Continue reading
Posted in 未分类 · Leave a comment

python中执行命令的3种方法小结

20 6月01 1月 by test31297505

目前我使用到的python中执行cmd的方式有三种: 1. 使用os.system(“cmd&#8 […]

Continue reading
Posted in 未分类 · Leave a comment

python爬虫实战之爬取v2ex网站帖子

20 6月01 1月 by test31297505

背景: pyspider:一个国人编写的强大的网络爬虫系统并带有强大的webui。采用python语言编写,分 […]

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

python获取服务器的厂商和型号信息,在rhehl6下,需要系统预装python-dmidecode这个包( […]

Continue reading
Posted in 未分类 · Leave a comment

python调用外部子进程,通过管道实现异步标准输入和输出的

20 6月01 1月 by test31297505

我们通常会遇到这样的需求:通过c++或其他较底层的语言实现了一个复杂的功能模块,需要搭建一个基于web的dem […]

Continue reading
Posted in 未分类 · Leave a comment

python调用浏览器,实现刷网页小程序

20 6月01 1月 by test31297505

python 打开浏览器,可以做简单的刷网页的小程序 and 其他有想象力的程序。不过仅供学习,勿用非法用途。 […]

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