Skip to content
  • About Me

charlie笔记

A programmer’s note boke for work and life

python插入排序算法的实现代码

12 9月10 11月 by helenadmin

1.算法:设有一组关键字{ k 1 , k 2 ,…, k n };排序开始就认为 k 1 是一个有序序列;让 […]

Continue reading
Posted in Python · Leave a comment

使用python搭建django应用程序步骤及版本冲突问题解决

12 9月10 11月 by helenadmin

首先你要确保你机器上面安装了python,其次,你还要确保你上面安装了django。接下来,才能进入到搭建第一 […]

Continue reading
Posted in Python · Leave a comment

python正则分组的应用

12 9月10 11月 by helenadmin

代码如下: import retext=’v101_renow.android.2.2.norma […]

Continue reading
Posted in Python · Leave a comment

python解析json实例方法

12 9月10 11月 by helenadmin

最近在做天气业务的延时监控,就是每隔一个小时检查一次天气数据是否变化,三次不变化就报警。由于页面给的数据的以j […]

Continue reading
Posted in Python · Leave a comment

使用python下载bing图片(代码)

12 9月10 11月 by helenadmin

直接上代码: 代码如下: # -*- coding: cp936 -*-import urllibimport […]

Continue reading
Posted in Python · Leave a comment

python列表推导式的使用方法

12 9月10 11月 by helenadmin

1.列表推导式书写形式:   [表达式 for 变量 in 列表] 或者 [表达式 for 变量 in 列表 […]

Continue reading
Posted in Python · Leave a comment

python中文乱码的解决方法

12 9月10 11月 by helenadmin

乱码原因:源码文件的编码格式为utf-8,但是window的本地默认编码是gbk,所以在控制台直接打印utf- […]

Continue reading
Posted in Python · Leave a comment

python连接mysql、mongodb、redis、memcache等数据库的方法

12 9月10 11月 by helenadmin

用python写脚本也有一段时间了,经常操作数据库(mysql),现在就整理下对各类数据库的操作,如后面有新的 […]

Continue reading
Posted in Python · Leave a comment

教你安装pythondjango(图文)

12 9月10 11月 by helenadmin

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

Continue reading
Posted in Python · Leave a comment

python从ftp下载数据保存实例

12 9月10 11月 by helenadmin

《hadoop权威指南》的天气数据可以在ftp://ftp3.ncdc.noaa.gov/pub/data/n […]

Continue reading
Posted in Python · Leave a comment

python正则表达式抓取成语网站

12 9月10 11月 by helenadmin

1、首先找到一个在线成语网站 2、查看网页结构,定义正则式看一下要抓的成语的标签有什么特点,查看源码,可以发现 […]

Continue reading
Posted in Python · Leave a comment

python爬取网站数据保存使用的方法

12 9月10 11月 by helenadmin

编码问题因为涉及到中文,所以必然地涉å […]

Continue reading
Posted in Python · Leave a comment

pythonlist语法学习(带例子)

12 9月10 11月 by helenadmin

创建:list = [5,7,9]取值和改值:list[1] = list[1] * 5列表尾插入:list. […]

Continue reading
Posted in Python · Leave a comment

python操作mysql数据库具体方法

12 9月10 11月 by helenadmin

代码如下: import mysqldbtry: conn=mysqldb.connect(host=&#82 […]

Continue reading
Posted in Python · Leave a comment

python获取apk文件url地址实例

12 9月10 11月 by helenadmin

工作中经常需要提取apk文件的特定url地址,如是想到用python脚本进行自动处理。需要用到的python基 […]

Continue reading
Posted in Python · Leave a comment

pythonzipfile模块详解

12 9月10 11月 by helenadmin

python zipfile模块用来做zip格式编码的压缩和解压缩的,zipfile里有两个非常重要的clas […]

Continue reading
Posted in Python · Leave a comment

python命令行非阻塞输入的小例子

12 9月10 11月 by helenadmin

随手google咗一下,基本上都用select实现非阻塞监听,但问题是,监听的是用select之后是不能像ge […]

Continue reading
Posted in Python · Leave a comment

pythonpickle和shelve模块的用法

12 9月10 11月 by helenadmin

1.pickle 写: 以写方式打开一个文件描述符,调用pickle.dump把对象写进去 代码如下: dn […]

Continue reading
Posted in Python · Leave a comment

python编写的com组件发生r6034错误的原因与解决办法

12 9月10 11月 by helenadmin

解决该问题的方法可以为调用本程序的exe文件建立一个合适的manifest文件,指定正确的msvcr90.dl […]

Continue reading
Posted in Python · Leave a comment

python的词法分析与语法分析

12 9月10 11月 by helenadmin

词法分析(lexical analysis):分析由字符组成的单词是否合法,如果没有问题的话,则产生一个单词流 […]

Continue reading
Posted in Python · Leave a comment

python中用ctrl+c终止多线程程序的问题解决

12 9月10 11月 by helenadmin

代码如下: #!/bin/env python # -*- coding: utf-8 -*- #filena […]

Continue reading
Posted in Python · Leave a comment

python不带重复的全排列代码

12 9月10 11月 by helenadmin

代码如下: from sys import argvscript, start, end = argvvis […]

Continue reading
Posted in Python · Leave a comment

简单文件操作python修改文件指定行的方法

12 9月10 11月 by helenadmin

例一: 代码如下: #!/usr/bin/pythonimport sysimport reif __name […]

Continue reading
Posted in Python · Leave a comment

python代理抓取并验证使用多线程实现

12 9月10 11月 by helenadmin

没有使用队列,也没有线程池还在学习只是多线程 代码如下: #coding:utf8 import urllib […]

Continue reading
Posted in Python · Leave a comment

python实现的一只从百度开始不断搜索的小爬虫

12 9月10 11月 by helenadmin

文中用到了beautifulsoup这个库, 目的是处理html文档分析的, 因为我只是提取了title的关键 […]

Continue reading
Posted in Python · Leave a comment

python将字符串转换成字典dict

12 9月10 11月 by helenadmin

代码如下: json到字典转化:dictinfo = simplejson.loads(json_str) 输 […]

Continue reading
Posted in Python · Leave a comment

python用于url解码和中文解析的小脚本(pythonurldecoder)

12 9月10 11月 by helenadmin

代码如下: # -*- coding: utf8 -*- #! python print(repr(&#822 […]

Continue reading
Posted in Python · Leave a comment

python的lambda匿名函数的简单介绍

12 9月10 11月 by helenadmin

lambda函数也叫匿名函数,即,函数没有具体的名称。先来看一个最简单例子: 代码如下: def f(x):r […]

Continue reading
Posted in Python · Leave a comment

pyv8学习python和javascript变量进行交互

10 9月10 11月 by helenadmin

python取得javascript里面的值 代码如下: import pyv8 with pyv8.jsco […]

Continue reading
Posted in Python · Leave a comment

sublimetext2编译python出错的解决方法(thesystemcannotfindthefilespecified)

10 9月10 11月 by helenadmin

[error 2] the system cannot find the file specified 解决方 […]

Continue reading
Posted in Python · Leave a comment

文章导航

Previous 1 … 9 10 11 12 13 14 15 16 17 18 19 … 260 Next

近期文章

  • 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笔记 ·
程序猿 散文朗诵 鬼故事 佛学网