Skip to content
  • About Me

charlie笔记

A programmer’s note boke for work and life

作者:test31297505

python连接oracle

20 6月01 1月 by test31297505

#!/usr/bin/env python import time start = time.clock() […]

Continue reading
Posted in 未分类 · Leave a comment

玩python之http代理

20 6月01 1月 by test31297505

0x00 前言 大家对http代理应该都非常熟悉,它在很多方面都有着极为广泛的应用。http代理分为正向代理和 […]

Continue reading
Posted in 未分类 · Leave a comment

格式化和清洗数据的python工具包

20 6月01 1月 by test31297505

世界很杂乱,来自现实世界的数据也一样杂乱。近来一份调查报告显示数据科学家60%的时间都花在整理数据上。不幸的是 […]

Continue reading
Posted in 未分类 · Leave a comment

python多继承详解

20 6月01 1月 by test31297505

class a(object): # a must be new-style class def __init […]

Continue reading
Posted in 未分类 · Leave a comment

python执行js的2种解决方案

20 6月01 1月 by test31297505

第1种方案 spidermonkey是mozilla项目的一部分,是一个用c语言实现的javascript脚本 […]

Continue reading
Posted in 未分类 · Leave a comment

python中的threadlocal变量

20 6月01 1月 by test31297505

werkzeug 作为一个 wsgi 工具库,由于一些方面的考虑,并没有直接使用python内置的thread […]

Continue reading
Posted in 未分类 · Leave a comment

python中单引号,双引号,多引号区别

20 6月01 1月 by test31297505

先说1双引号与3个双引号的区别,双引号所表示的字符串通常要写成一行 如: s1 = “hello, […]

Continue reading
Posted in 未分类 · Leave a comment

豆瓣的开发语言:无所不能的python

20 6月01 1月 by test31297505

面对珍珠(perl)夺目之光、灵蛇(python)更具有上天入地之能。它可以在 ms-dos,amiga,be […]

Continue reading
Posted in 未分类 · Leave a comment

python基础split和join函数比较

20 6月01 1月 by test31297505

一、关于split 和 join 方法 1只针对字符串进行处理。split:拆分字符串、join连接字符串 2 […]

Continue reading
Posted in 未分类 · Leave a comment

python

20 6月01 1月 by test31297505

1.isinstance函数:除了以一个类型作为参数,还可以以一个类型元组作为参数。 isinstance(o […]

Continue reading
Posted in 未分类 · Leave a comment

python实例获取mp3文件的tag信息

20 6月01 1月 by test31297505

下面利用一个python的实例程序,来学习python。这个程序的目的就是分析出所有mp3文件的tag信息并输 […]

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 的对象引用机制稍微研究了一下,留下笔记,以供查阅。 首先有一点是明确的:「python 中 […]

Continue reading
Posted in 未分类 · Leave a comment

一种比较省内存的稀疏矩阵python存储方案

20 6月01 1月 by test31297505

推荐系统中经常需要处理类似user_id, item_id, rating这样的数据,其实就是数学里面的稀疏矩 […]

Continue reading
Posted in 未分类 · Leave a comment

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

20 6月01 1月 by test31297505

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

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

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爬虫实战之爬取v2ex网站帖子

20 6月01 1月 by test31297505

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

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时间处理详解

20 6月01 1月 by test31297505

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

Continue reading
Posted in 未分类 · Leave a comment

python中的

20 6月01 1月 by test31297505

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

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使用signal模块实现定时执行

20 6月01 1月 by test31297505

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

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中整型对象存储的位置

20 6月01 1月 by test31297505

在 python 整型对象所存储的位置是不同的, 有一些是预先分配内存的,它一直存储在内存里面, 而其它的, […]

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

文章导航

先前文章
较新文章

近期文章

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