Skip to content
  • About Me

charlie笔记

A programmer’s note boke for work and life

作者:test30307667

利用python绘制数据的瀑布图的教程

01 10月01 1月 by test30307667

介绍 对于绘制某些类型的数据来说,瀑布图是一种十分有用的工具。不足为奇的是,我们可以使用pandas和matp […]

Continue reading
Posted in 未分类 · Leave a comment

分析在python中何种情况下需要使用断言

01 10月01 1月 by test30307667

这个问题是如何在一些场景下使用断言表达式,通常会有人误用它,所以我决定写一篇文章来说明何时使用断言,什么时候不 […]

Continue reading
Posted in 未分类 · Leave a comment

python中将阿拉伯数字转换成中文的实现代码

30 9月01 1月 by test30307667

代码如下: #!/usr/bin/python #-*- encoding: utf-8 -*- import […]

Continue reading
Posted in 未分类 · Leave a comment

python3实现从文件中读取指定行的方法

30 9月01 1月 by test30307667

本文实例讲述了python3实现从文件中读取指定行的方法。分享给大家供大家参考。具体实现方法如下: # pyt […]

Continue reading
Posted in 未分类 · Leave a comment

python装饰器使用实例:验证参数合法性

30 9月01 1月 by test30307667

python是不带静态检查的动态语言,有时候需要在调用函数时保证参数合法。检查参数合法性是一个显著的切面场景, […]

Continue reading
Posted in 未分类 · Leave a comment

python导入txt数据到mysql的方法

30 9月01 1月 by test30307667

本文实例讲述了python导入txt数据到mysql的方法。分享给大家供大家参考。具体分析如下: 从txt文本 […]

Continue reading
Posted in 未分类 · Leave a comment

python实现的简单抽奖系统实例

29 9月01 1月 by test30307667

本文实例讲述了python实现的简单抽奖系统。分享给大家供大家参考。具体实现方法如下: #!/usr/bin/ […]

Continue reading
Posted in 未分类 · Leave a comment

用python编写一个简单的俄罗斯方块游戏的教程

28 9月01 1月 by test30307667

俄罗斯方块游戏,使用python实现,总共有350+行代码,实现了俄罗斯方块游戏的基本功能,同时会记录所花费时 […]

Continue reading
Posted in 未分类 · Leave a comment

python将图片文件转换成base64编码的方法

28 9月01 1月 by test30307667

本文实例讲述了python将图片文件转换成base64编码的方法。分享给大家供大家参考。具体实现方法如下: i […]

Continue reading
Posted in 未分类 · Leave a comment

python基础学习第二弹类属性和实例属性

28 9月01 1月 by test30307667

代码如下: #!/usr/bin/env python class foo(object): x=1 if _ […]

Continue reading
Posted in 未分类 · Leave a comment

python字符和字符值(ascii或unicode码值)转换方法

28 9月01 1月 by test30307667

目的 将一个字符转化为相应的ascii或unicode码,或相反的操作。 方法 对于ascii码(0~255范 […]

Continue reading
Posted in 未分类 · Leave a comment

使用python实现下载网易云音乐的高清mv

27 9月01 1月 by test30307667

python下载网易云音乐的高清mv,没有从首页进去解析,直接循环了…. downpage1.py […]

Continue reading
Posted in 未分类 · Leave a comment

python输出当前目录下index.html文件路径的方法

27 9月01 1月 by test30307667

本文实例讲述了python输出当前目录下index.html文件路径的方法。分享给大家供大家参考。具体实现方法 […]

Continue reading
Posted in 未分类 · Leave a comment

python中字典创建、遍历、添加等实用操作技巧合集

27 9月01 1月 by test30307667

字段是python是字典中唯一的键-值类型,是python中非常重要的数据结构,因其用哈希的方式存储数据,其复 […]

Continue reading
Posted in 未分类 · Leave a comment

python中实现参数类型检查的简单方法

26 9月01 1月 by test30307667

python是一门弱类型语言,很多从c/c++转过来的朋友起初不是很适应。比如,在声明一个函数时,不能指定参数 […]

Continue reading
Posted in 未分类 · Leave a comment

pythonurlopen使用小示例

26 9月01 1月 by test30307667

一、打开一个网页获取所有的内容 from urllib import urlopendoc = urlopen […]

Continue reading
Posted in 未分类 · Leave a comment

python实现用于测试网站访问速率的方法

25 9月01 1月 by test30307667

这是python编写的用于测试网站访问速率的代码片段,可以输出打开某url的时间,访问100次的平均时间,最大 […]

Continue reading
Posted in 未分类 · Leave a comment

python2.5/2.6实用教程入门基础篇

25 9月01 1月 by test30307667

起步走 代码如下: #! /usr/bin/python a=2 b=3 c=”test&#822 […]

Continue reading
Posted in 未分类 · Leave a comment

python素数检测实例分析

25 9月01 1月 by test30307667

本文实例讲述了python素数检测的方法。分享给大家供大家参考。具体如下: 该程序实现了素数检测器功能,如果结 […]

Continue reading
Posted in 未分类 · Leave a comment

python文件操作整理汇总

25 9月01 1月 by test30307667

总是记不住api。昨晚写的时候用到了这些,但是没记住,于是就索性整理一下吧: python中对文件、文件夹(文 […]

Continue reading
Posted in 未分类 · Leave a comment

python命令行参数解析模块optparse使用实例

25 9月01 1月 by test30307667

示例 代码如下: from optparse import optionparser […] de […]

Continue reading
Posted in 未分类 · Leave a comment

pyramid添加middleware的方法实例

24 9月01 1月 by test30307667

假设我们要添加一个我们自己的middleware,用来记录每次请求的日志下面就是一个符合规范的middlewa […]

Continue reading
Posted in 未分类 · Leave a comment

python转码问题的解决方法

24 9月01 1月 by test30307667

比如,若要将某个string对象s从gbk内码转换为utf-8,可以如下操作 s.decode(‘ […]

Continue reading
Posted in 未分类 · Leave a comment

在python中使用模块的教程

24 9月01 1月 by test30307667

python本身就内置了很多非常有用的模块,只要安装完毕,这些模块就可以立刻使用。 我们以内建的sys模块为例 […]

Continue reading
Posted in 未分类 · Leave a comment

安装python的web.py框架并从helloworld开始编程

24 9月01 1月 by test30307667

最近有一个小的web项目,想用喜爱都python,但是想到之前接触过都django我感觉一阵不寒而栗,为什么& […]

Continue reading
Posted in 未分类 · Leave a comment

python正则表达式re模块使用说明

24 9月01 1月 by test30307667

首先,运行 python 解释器,导入 re 模块并编译一个 re: #!python python 2.2. […]

Continue reading
Posted in 未分类 · Leave a comment

windows8下安装python的beautifulsoup

24 9月01 1月 by test30307667

运行环境:windows 8.1 python:2.7.6 在安装的时候,我使用的pip来进行安装,命令如下: […]

Continue reading
Posted in 未分类 · Leave a comment

python实现统计英文单词个数及字符串分割代码

23 9月01 1月 by test30307667

字符串分割 代码如下: str=”a|and|hello|||ab” alist = […]

Continue reading
Posted in 未分类 · Leave a comment

详解详解python中writelines()方法的使用

23 9月01 1月 by test30307667

writelines()方法写入字符串序列到文件。该序列可以是任何可迭代的对象产生字符串,字符串为一般列表。没 […]

Continue reading
Posted in 未分类 · Leave a comment

几个提升python运行效率的方法之间的对比

23 9月01 1月 by test30307667

在我看来,python社区分为了三个流派,分别是python 2.x组织,3.x组织和pypy组织。这个分类基 […]

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