Skip to content
  • About Me

charlie笔记

A programmer’s note boke for work and life

作者:test16604225

详细说明python字符串关键点总结

10 2月01 1月 by test16604225

python字符串关键点有下面几点: 1.一些引号分隔的字符 你可以把字符串看出是python的一种数据类型, […]

Continue reading
Posted in 未分类 · Leave a comment

关于python中http请求方法库汇总

10 2月01 1月 by test16604225

最近在使用python做接口测试,发现python中http请求方法有许多种,今天抽点时间把相关内容整理,分享 […]

Continue reading
Posted in 未分类 · Leave a comment

详解开发中常遇到的python陷阱和注意点

10 2月01 1月 by test16604225

最近使用python的过程中遇到了一些坑,例如用datetime.datetime.now()这个可变对象作为 […]

Continue reading
Posted in 未分类 · Leave a comment

分享一个python最简洁的条件判断语句写法

10 2月01 1月 by test16604225

这篇文章主要介绍了python返回真假值(true or false)小技巧,本文探讨的是最简洁的条件判断语句 […]

Continue reading
Posted in 未分类 · Leave a comment

关于python中整型对象存储的位置说明

10 2月01 1月 by test16604225

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

Continue reading
Posted in 未分类 · Leave a comment

关于python的metaclass详细说明

10 2月01 1月 by test16604225

元类一般用于创建类。在执行类定义时,解释器必须要知道这个类的正确的元类。解释器会先寻找类属性metaclass […]

Continue reading
Posted in 未分类 · Leave a comment

关于python字符串格式化详细介绍

10 2月01 1月 by test16604225

字符串格式化操作符(%),非常类似于c 语言里面的printf()函数的字符串格式化,甚至所用的符号都一样,都 […]

Continue reading
Posted in 未分类 · Leave a comment

使用python字符串连接的5种方法介绍

10 2月01 1月 by test16604225

总结了一下python字符串连接的5种方法: 1. 加号 第一种,有编程经验的人,估计都知道很多语言里面是用加 […]

Continue reading
Posted in 未分类 · Leave a comment

如何使用python实现代码行数统计工具介绍

10 2月01 1月 by test16604225

我们经常想要统计项目的代码行数,但是如果想统计功能比较完善可能就不是那么简单了, 今天我们来看一下如何用pyt […]

Continue reading
Posted in 未分类 · Leave a comment

使用python五点搞定作用域方法

10 2月01 1月 by test16604225

1、块级作用域 想想此时运行下面的程序会有输出吗?执行会成功吗? #块级作用域 if 1 == 1: name […]

Continue reading
Posted in 未分类 · Leave a comment

详解python编码处理之str与unicode的区别与使用分析

10 2月01 1月 by test16604225

用python处理中文,读取文件或消息时,如果发现乱码(字符串处理,读写文件,print),大多数人的做法是, […]

Continue reading
Posted in 未分类 · Leave a comment

关于python中运算符"=="和"is"的差别使用分析

10 2月01 1月 by test16604225

前言 在讲is和==这两种运算符区别之前,首先要知道python中对象包含的三个基本要素,分别是:id(身份标 […]

Continue reading
Posted in 未分类 · Leave a comment

详细说明python不同进制之间的转换

10 2月01 1月 by test16604225

不同的进制 二进制 0b101 以数字0和字母b打头的表示二进制数 如果出现大于等于2的数 会抛出syntax […]

Continue reading
Posted in 未分类 · Leave a comment

详解python四种数值类型(int,long,float,complex)区别及转换方法

10 2月01 1月 by test16604225

python支持四种不同的数值类型,包括int(整数)long(长整数)float(浮点实际值)complex […]

Continue reading
Posted in 未分类 · Leave a comment

详解python2和python3中print的区别

10 2月01 1月 by test16604225

在python2和python3中都提供print()方法来打印信息,但两个版本间的print稍微有差异 主要 […]

Continue reading
Posted in 未分类 · Leave a comment

使用python中文件i/o高效操作处理的技巧分享

10 2月01 1月 by test16604225

如何读写文本文件? 实际案例 某文本文件编码格式已直(如utf-8,gbk,big5),在python2.x和 […]

Continue reading
Posted in 未分类 · Leave a comment

使用python如何防止sql注入的方法

10 2月01 1月 by test16604225

前言 web漏洞之首莫过于sql了,不管使用哪种语言进行web后端开发,只要使用了关系型数据库,可能都会遇到s […]

Continue reading
Posted in 未分类 · Leave a comment

使用python生成csv乱码问题解决方法

10 2月01 1月 by test16604225

需求背景 最近为公司开发了一套邮件日报程序,邮件一般就是表格,图片,然后就是附件。附件一般都是默认写到txt文 […]

Continue reading
Posted in 未分类 · Leave a comment

关于python中字典的循环遍历的两种方式介绍

10 2月01 1月 by test16604225

开发中经常会用到对于字典、列表等数据的循环遍历,但是python中对于字典的遍历对于很多初学者来讲非常陌生,今 […]

Continue reading
Posted in 未分类 · Leave a comment

关于python类中super()和

10 2月01 1月 by test16604225

单继承时super()和init()实现的功能是类似的 class base(object): def ini […]

Continue reading
Posted in 未分类 · Leave a comment

python魔术方法

10 2月01 1月 by test16604225

python的魔术方法一般以methodname的形式命名,如:init(构造方法), getitem、 se […]

Continue reading
Posted in 未分类 · Leave a comment

关于python中enumerate函数用法详细说明

10 2月01 1月 by test16604225

enumerate函数用于遍历序列中的元素以及它们的下标,多用于在for循环中得到计数,enumerate参数 […]

Continue reading
Posted in 未分类 · Leave a comment

python中struct.pack()和struct.unpack()用法详细说明

10 2月01 1月 by test16604225

python中的struct主要是用来处理c结构数据的,读入时先转换为python的字符串类型,然后再转换为p […]

Continue reading
Posted in 未分类 · Leave a comment

使用python实现一个简单的图片上传存储服务

10 2月01 1月 by test16604225

github地址: https://github.com/honmaple/maple-file 使用flas […]

Continue reading
Posted in 未分类 · Leave a comment

关于python线程学习记录

10 2月01 1月 by test16604225

引言&动机 考虑一下这个场景,我们有10000条数据需要处理,处理每条数据需要花费1秒,但读取数据只 […]

Continue reading
Posted in 未分类 · Leave a comment

使用python实现简单socket通信的方法介绍

10 2月01 1月 by test16604225

这篇文章主要介绍了python实现简单socket通信的方法,结合实例形式分析了socket通信服务端与客户端 […]

Continue reading
Posted in 未分类 · Leave a comment

图文详解python开发利器之ulipad的使用实践

10 2月01 1月 by test16604225

ulipad是一个国人limodou编写的专业python编辑器,它基于wxpython开发的gui(图形化界 […]

Continue reading
Posted in 未分类 · Leave a comment

关于python中%r与%s的区别介绍

10 2月01 1月 by test16604225

这篇文章讲述关于python中%r与%s的区别介绍 %r是rper()方法处理的对象 %s是str()方法处理 […]

Continue reading
Posted in 未分类 · Leave a comment

python自定义模块使用说明

10 2月01 1月 by test16604225

保存一个hello.py文件在f:/data/python目录下 hello.py >>> def hello […]

Continue reading
Posted in 未分类 · Leave a comment

python变量传递的详细介绍

10 2月01 1月 by test16604225

python变量传递数值 代码 num_1 = 123 num_2 = num_1 # 改变num_2值前 p […]

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