Skip to content
  • About Me

charlie笔记

A programmer’s note boke for work and life

月份:2017年9月

python使用新浪微博api上传图片到微博示例

28 9月10 11月 by helenadmin

代码如下: import urllib.parse,os.path,time,sysfrom http.cli […]

Continue reading
Posted in Python · Leave a comment

python小脚本-批量转换编码

26 9月15 11月 by helenadmin

python实现批量转换文件编码(批转换编码示例) # -*- coding:utf-8 -*- author […]

Continue reading
Posted in Python · Tagged python小脚本,批量转换编码 · Leave a comment

python小脚本-python批量改动文件后缀

26 9月15 11月 by helenadmin

近期下载了很多各种教程, 但是不幸的是后缀名都是 “.mp4”, 而本人喜欢 &#82 […]

Continue reading
Posted in Python · Tagged python小脚本,python批量改动文件后缀 · Leave a comment

python爬虫-scrapy解析js

26 9月15 11月 by helenadmin

代码如下: from selenium import selenium class myspider(craw […]

Continue reading
Posted in Python · Tagged python爬虫,scrapy解析js · Leave a comment

python基础教程-生成指定长度的随机数密码

26 9月15 11月 by helenadmin

代码如下: #!/usr/bin/env python# -*- coding:utf-8 -*- #导入ra […]

Continue reading
Posted in Python · Tagged python基础教程,生成指定长度的随机数密码 · Leave a comment

python linux命令大全 使用python获取网络的输入输出信息

26 9月15 11月 by helenadmin

net.py 获取网络接口的输入和输出 代码如下: #!/usr/bin/env pythonimport t […]

Continue reading
Posted in Python · Tagged python linux命令大全,使用python获取网络的输入输出信息 · Leave a comment

使用cx

26 9月01 1月 by

需要使用到的文件wxapp.py, read_file.py, setup.py 代码如下: #!/usr/b […]

Continue reading
Posted in 未分类 · Leave a comment

python爬虫-用beautifulsoup爬取爱奇艺视频

26 9月15 11月 by helenadmin

代码如下: import sysimport urllibfrom urllib import request […]

Continue reading
Posted in Python · Tagged python爬虫,用beautifulsoup爬取爱奇艺视频 · Leave a comment

python的函数嵌套的使用方法

26 9月10 11月 by helenadmin

例子: 代码如下: def re_escape(fn): def arg_escaped(this, *arg […]

Continue reading
Posted in Python · Leave a comment

python计算最小优先级队列代码分享

25 9月10 11月 by helenadmin

代码如下: # -*- coding: utf-8 -*- class heap(object): @clas […]

Continue reading
Posted in Python · Leave a comment

python基础入门详解(文件输入/输出内建类型字典操作使用方法)

23 9月10 11月 by helenadmin

一、变量和表达式 代码如下: >>> 1 + 1 2>>> print ‘hello world& […]

Continue reading
Posted in Python · Leave a comment

python3图片转换二进制存入mysql

22 9月10 11月 by helenadmin

首先,在数据库中创建一个表,用于存放图片: 代码如下: create table images(id int […]

Continue reading
Posted in Python · Leave a comment

python数据库操作常用功能使用详解(创建表/插入数据/获取数据)

21 9月10 11月 by helenadmin

实例1、取得mysql版本 代码如下: # -*- coding: utf-8 -*-#安装mysql db […]

Continue reading
Posted in Python · Leave a comment

python2.7删除文件夹和删除文件代码实例

20 9月10 11月 by helenadmin

代码如下: #!c:\python27\python.exe# -*- coding: utf-8 -*- i […]

Continue reading
Posted in Python · Leave a comment

python中getattr函数使用方法getattr实现工厂模式

19 9月10 11月 by helenadmin

看了下函数本身的doc 代码如下: getattr(object, name[, default]) -> v […]

Continue reading
Posted in Python · Leave a comment

python抓取网页图片并放到指定文件夹

19 9月10 11月 by helenadmin

python抓取网站图片并放到指定文件夹 代码如下: # -*- coding=utf-8 -*-import […]

Continue reading
Posted in Python · Leave a comment

python实现的简单万年历例子分享

19 9月10 11月 by helenadmin

代码如下: #!/usr/bin/env python2#-*- coding:utf-8 -*-__auth […]

Continue reading
Posted in Python · Leave a comment

python实现linux服务器批量修改密码并生成execl

19 9月10 11月 by helenadmin

批量修改linux服务器密码,同时生成execl表格 代码如下: #!/usr/bin/env python# […]

Continue reading
Posted in Python · Leave a comment

python实现dns正向查询、反向查询的例子

19 9月10 11月 by helenadmin

1.dns查询过程: 以查询 www.baidu.com为例 (1)电脑向本地域名服务器发送解析www.bai […]

Continue reading
Posted in Python · Leave a comment

python生成器的使用方法

19 9月10 11月 by helenadmin

什么是生成器?生成器是一个包含了特殊关键字yield的函数。当被调用的时候,生成器函数返回一个生成器。可以使用 […]

Continue reading
Posted in Python · Leave a comment

pythonsys.path详细介绍

19 9月10 11月 by helenadmin

如何将路径“永久”添加到sys.path? sys.path是python的搜索模块的路径集,是一 […]

Continue reading
Posted in Python · Leave a comment

python解析文件示例

18 9月10 11月 by helenadmin

python最近的工作主要是组件兼容性测试,原有的框架有很多功能还不完善,需要补充!比如,需要将autoit脚 […]

Continue reading
Posted in Python · Leave a comment

python回调函数的使用方法

18 9月10 11月 by helenadmin

有两种类型的回调函数: 代码如下: blocking callbacks (also known as syn […]

Continue reading
Posted in Python · Leave a comment

python检测lvsrealserver状态

18 9月10 11月 by helenadmin

代码如下: import httplibimport osimport time def check_http […]

Continue reading
Posted in Python · Leave a comment

python字符串加密解密的三种方法分享(base64win32com)

18 9月10 11月 by helenadmin

1. 最简单的方法是用base64: 代码如下: import base64 s1 = base64.enco […]

Continue reading
Posted in Python · Leave a comment

忘记ftp密码使用pythonftplib库暴力破解密码的方法示例

18 9月10 11月 by helenadmin

python具体强大的库文件,很多功能都有相应的库文件,所以很有必要进行学习一下,其中有一个ftp相应的库文件 […]

Continue reading
Posted in Python · Leave a comment

python实现人人网登录示例分享

18 9月10 11月 by helenadmin

代码如下: import reimport urllib2import cookielib def renre […]

Continue reading
Posted in Python · Leave a comment

使用python的chardet库获得文件编码并修改编码

18 9月10 11月 by helenadmin

首先需要安装chardet库,有很多方式,我才用的是比较笨的方式:sudo pip install chard […]

Continue reading
Posted in Python · Leave a comment

python二分法实现实例

18 9月10 11月 by helenadmin

1.算法:(设查找的数组期间为array[low, high]) (1)确定该期间的中间位置k(2)将查找的值 […]

Continue reading
Posted in Python · Leave a comment

python调用shell的方法

18 9月10 11月 by helenadmin

1.1 os.system(command)在一个子shell中运行command命令,并返回command命 […]

Continue reading
Posted in Python · 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笔记 ·