Skip to content
  • About Me

charlie笔记

A programmer’s note boke for work and life

python

20 6月01 1月 by test31297505

简单的数据类型以及赋值 变量不需要声明 python的变量不需要声明,你可以直接输入: >>>a = 10 那 […]

Continue reading
Posted in 未分类 · Leave a comment

用python读取excel中的数据

20 6月01 1月 by test31297505

python中要想处理excel,必须用到第三方模块xlrd,所以windows 我安装方法是cmd中命令:e […]

Continue reading
Posted in 未分类 · Leave a comment

你可能不知道的30个python语言的特点技巧

20 6月01 1月 by test31297505

从我开始学习python时我就决定维护一个经常使用的“窍门”列表。不论何时当我看到一段让我觉得“酷,这样也行! […]

Continue reading
Posted in 未分类 · Leave a comment

python多线程之thread

20 6月01 1月 by test31297505

python 多线程之thread #! /usr/bin/env python # -*- coding:u […]

Continue reading
Posted in 未分类 · Leave a comment

python字符编码转换秘诀

20 6月01 1月 by test31297505

python 有str object 和 unicode object 两种字符串, 都可以存放字符的字节编码 […]

Continue reading
Posted in 未分类 · Leave a comment

centos下如何正确升级python

20 6月01 1月 by test31297505

在centos上搭建测试环境时候,遇到需要升级python版本的情况,于是就记录了整个升级的过程: 在cent […]

Continue reading
Posted in 未分类 · Leave a comment

python信号量

20 6月01 1月 by test31297505

信号的概念 信号(signal)– 进程之间通讯的方式,是一种软件中断。一个进程一旦接收到信号就会 […]

Continue reading
Posted in 未分类 · Leave a comment

python

20 6月01 1月 by test31297505

yield 简单说来就是一个生成器,生成器是这样一个函数,它记住上一次返回时在函数体中的位置。对生成器函数的第 […]

Continue reading
Posted in 未分类 · Leave a comment

python处理抓取中文编码和判断编码

20 6月01 1月 by test31297505

在开发自用爬虫过程中,有的网页是utf-8,有的是gb2312,有的是gbk,如果不加处理,采集到的都是乱码, […]

Continue reading
Posted in 未分类 · Leave a comment

python中的转义字符

20 6月01 1月 by test31297505

escape what it does. 含义 \\ backslash () 反斜杠 \’ si […]

Continue reading
Posted in 未分类 · Leave a comment

python

20 6月01 1月 by test31297505

缩进 python最具特色的就是用缩进来写模块。我们下面以if选择结构来举例。if后面跟随条件,如果条件成立, […]

Continue reading
Posted in 未分类 · Leave a comment

python操作列表的常用方法总结

20 6月01 1月 by test31297505

下面列出列表常用的方法操作列表以及小例子: 1. append 在列表末尾添加元素,需在列表末尾添加元素,需要 […]

Continue reading
Posted in 未分类 · Leave a comment

python下redis的使用

20 6月01 1月 by test31297505

用python操作redis数据库,先下载redis-py模块下载地址https://github.com/a […]

Continue reading
Posted in 未分类 · Leave a comment

详解python的函数嵌套

20 6月01 1月 by test31297505

python语言允许在定义函数的时候,其函数体内又包含另外一个函数的完整定义,这就是我们通常所说的嵌套定义。 […]

Continue reading
Posted in 未分类 · Leave a comment

python忽略warning警告错误

20 6月01 1月 by test31297505

python开发中经常遇到报错的情况,但是warning通常并不影响程序的运行,而且有时特别讨厌,下面我们来说 […]

Continue reading
Posted in 未分类 · Leave a comment

python下载文件的三种方法

20 6月01 1月 by test31297505

python开发中时长遇到要下载文件的情况,最常用的方法就是通过http利用urllib或者urllib2模块 […]

Continue reading
Posted in 未分类 · Leave a comment

python字典内置方法get的使用

20 6月01 1月 by test31297505

python字典内置方法get应用,如果我们需要获取字典值的话,我们有两种方法,一个是通过dict[&#821 […]

Continue reading
Posted in 未分类 · Leave a comment

python中的迭代与递归

20 6月01 1月 by test31297505

遇到一个情况,需要进行递归操作,但是呢递归次数非常大,有一万多次。先不说一万多次递归,原来的测试代码是java […]

Continue reading
Posted in 未分类 · Leave a comment

使用python制作一个简单的刷微博器

20 6月01 1月 by test31297505

呵呵,不得不佩服python的强大,寥寥几句代码就能做一个简单的刷微博器。 import webbrowser […]

Continue reading
Posted in 未分类 · Leave a comment

详解python文件读写操作

20 6月01 1月 by test31297505

1.open 使用open打开文件后一定要记得调用文件对象的close()方法。比如可以用try/finall […]

Continue reading
Posted in 未分类 · Leave a comment

设置sublimetext的python开发环境

20 6月01 1月 by test31297505

  最近,当我主要使用python开发环境编辑的时候,我开始越来越多地用到sublinme text 2.这篇 […]

Continue reading
Posted in 未分类 · Leave a comment

pythonide:pycharm中的那些实用功能

20 6月01 1月 by test31297505

 到目前为止,我用eclipse已经有一些年头了,大部分的时间都是用来写python(安装pydev插件)以及 […]

Continue reading
Posted in 未分类 · Leave a comment

python三元运算符详解

20 6月01 1月 by test31297505

python是没有三元描述符的,但是可以通过模拟的实现。其中一种是: (x and v1) or v2 正常情 […]

Continue reading
Posted in 未分类 · Leave a comment

python中单引号,双引号和三引号的区别

20 6月01 1月 by test31297505

在python中字符串可以用单引号括起来,也可以用双引号,这两种方式是等价的,而在php当中单引号和双引号的有 […]

Continue reading
Posted in 未分类 · Leave a comment

为python加速

20 6月01 1月 by test31297505

本来我一直不知道怎么来更好地优化网页的性能,然后最近做python和php同类网页渲染速度比较时,意外地发现一 […]

Continue reading
Posted in 未分类 · Leave a comment

python程序员常用的ide和开发工具

20 6月01 1月 by test31297505

概述 “工欲善其事,必先利其器”,如果说编程是程序员的手艺,那么ide就是程序员的吃饭家伙了。 ide的全称是 […]

Continue reading
Posted in 未分类 · Leave a comment

python你必须知道的十个库

20 6月01 1月 by test31297505

docopt。抛弃optparse和argparse吧,使用docstrings来构建优雅的,可读性强的,并且 […]

Continue reading
Posted in 未分类 · Leave a comment

python开发工具pycharm个性化设置备份

20 6月01 1月 by test31297505

pycharm个性化设置备份 1.设置默认pycharm解析器 2.设置缩进符为制表符“tab” file – […]

Continue reading
Posted in 未分类 · Leave a comment

python中的匿名函数

20 6月01 1月 by test31297505

简述 除了def语句之外,python还提供了一种生成函数对象的表达式形式。这个表达式创建了一个之后能够调用的 […]

Continue reading
Posted in 未分类 · Leave a comment

python特殊语法

20 6月01 1月 by test31297505

python内置了一些特殊函数,这些函数很具python特性。可以让代码更加简洁。 可以看例子: 1 filt […]

Continue reading
Posted in 未分类 · Leave a comment

文章导航

Previous 1 … 141 142 143 144 145 146 147 148 149 150 151 … 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笔记 ·
程序猿 散文朗诵 鬼故事 佛学网