Skip to content
  • About Me

charlie笔记

A programmer’s note boke for work and life

使用python三目计算符的用法及短路逻辑方法介绍

10 2月01 1月 by test16604225

今天在看别人代码时看到这样一种写法, 感觉是个挺容易踩到的坑, 搞清楚后写出来备忘. 短路逻辑 python中 […]

Continue reading
Posted in 未分类 · Leave a comment

使用python替换文件夹下的文件名称及文件内容方法介绍

10 2月01 1月 by test16604225

示例效果: 1.替换某文件夹下的 文件夹及子文件夹 的名称 由oldstrdir 变为 newstrdir; […]

Continue reading
Posted in 未分类 · Leave a comment

python集合类型(listtupledictsetgenerator)图文详解

10 2月01 1月 by test16604225

python内嵌的集合类型有list、tuple、set、dict。 列表list:看似数组,但比数组强大,支 […]

Continue reading
Posted in 未分类 · Leave a comment

详解python3利subprocess实现管道pipe交互操作读/写通信方法

10 2月01 1月 by test16604225

这里我们用windows下的shell来举例: subprocess * 为了方便你理解,我们用一个很简单的一 […]

Continue reading
Posted in 未分类 · Leave a comment

关于python

10 2月01 1月 by test16604225

python内置函数open()用于打开文件和创建文件对象 语法 open(name[,mode[,bufsi […]

Continue reading
Posted in 未分类 · Leave a comment

python数据类型元组详细介绍

10 2月01 1月 by test16604225

这篇文章讲述python数据类型元组详细介绍 元组其实是一种只读列表, 不能增,改, 只可以查询 对于不可变的 […]

Continue reading
Posted in 未分类 · Leave a comment

详解python安装后的安装编辑器步骤

10 2月01 1月 by test16604225

notepad++ 7.2.2和 sublime text –之心 notepad++ 7.2.2 […]

Continue reading
Posted in 未分类 · Leave a comment

python元组(tuple)、列表(list)、字典(dict)的分别介绍

10 2月01 1月 by test16604225

元组(tuple):   元组常用小括号表示,即:(),元素加逗号,是元组的标识。 1 #定义一个元组 2 3 […]

Continue reading
Posted in 未分类 · Leave a comment

python调用c的sdk出现返回值不符合预期以及segmentationfault的解决方法

10 2月01 1月 by test16604225

1、sdk返回值不是int型1.1 登录函数调用 def login(ip, port, username, […]

Continue reading
Posted in 未分类 · Leave a comment

python中itertools模块的详细介绍

10 2月01 1月 by test16604225

itertools模块:循环器 一,无穷循环器:count,cycle,repeat (1)count(5,3 […]

Continue reading
Posted in 未分类 · Leave a comment

python

10 2月01 1月 by test16604225

  s1=set([11,22,33,44,’tom’,’tony&#82 […]

Continue reading
Posted in 未分类 · Leave a comment

使用python实现发送邮件方法

10 2月01 1月 by test16604225

这篇文章介绍使用python实现发送邮件方法 # coding=utf-8import smtplib fro […]

Continue reading
Posted in 未分类 · Leave a comment

详解pythonoptionparser模块使用方法

10 2月01 1月 by test16604225

optionparser是python中用来处理命令行的模块,在我们使用python进行流程化开发中必要的工具 […]

Continue reading
Posted in 未分类 · Leave a comment

使用python实现简单的猜数字游戏示例代码

10 2月01 1月 by test16604225

python实现简单的猜数字游戏,具体如下: 随机生成一个1-10之间的数字,让用户来猜,当猜错时,会提示猜的 […]

Continue reading
Posted in 未分类 · Leave a comment

关于python的object和type详细介绍

10 2月01 1月 by test16604225

1、节选自python documentation 3.5.2的部分解释 objects are python […]

Continue reading
Posted in 未分类 · Leave a comment

图文介绍python开发环境搭建步骤

10 2月01 1月 by test16604225

  虽然网上有很多python开发环境搭建的文章,不过重复造轮子还是要的,记录一下过程,方便自己以后配置,也方 […]

Continue reading
Posted in 未分类 · Leave a comment

利用python中socketserver实现客户端与服务器间非阻塞通信方法介绍

10 2月01 1月 by test16604225

利用socketserver模块来实现网络客户端与服务器并发连接非阻塞通信 首先,先了解下socketserv […]

Continue reading
Posted in 未分类 · Leave a comment

python学习enumerate实践用法介绍

10 2月01 1月 by test16604225

a new built-in function, enumerate() , will make certai […]

Continue reading
Posted in 未分类 · Leave a comment

使用python包含汉字的文件读写末尾加上特定字符方法介绍

10 2月01 1月 by test16604225

在数据挖掘中,原始文件的格式往往是令人抓狂,很重要的一步是对数据文件的格式进行整理。 最近,接手的项目里,提供 […]

Continue reading
Posted in 未分类 · Leave a comment

详解python中threadpool线程池任务终止示例代码

10 2月01 1月 by test16604225

需求 加入我们需要处理一串个位数(0~9),奇数时需要循环打印它;偶数则等待对应时长并完成所有任务;0则是错误 […]

Continue reading
Posted in 未分类 · Leave a comment

使用python网页文档处理脚本实例代码

10 2月01 1月 by test16604225

  嵌入式web服务器不同于传统服务器,web需要转换成数组格式保存在flash中,才方便lwip网络接口的调 […]

Continue reading
Posted in 未分类 · Leave a comment

python获取指定时间段内的随机不重复时间点的实现代码

10 2月01 1月 by test16604225

这篇文章介绍python获取指定时间段内的随机不重复时间点的实现代码 场景1:取n个07:30:00-09:3 […]

Continue reading
Posted in 未分类 · Leave a comment

使用python实现wc命令程序的功能的实例代码

10 2月01 1月 by test16604225

这里使用了 python 的基本代码实现了 linux 系统下 wc 命令程序的基本功能。 #!/usr/bi […]

Continue reading
Posted in 未分类 · Leave a comment

使用python实现时间时分秒与秒数的互相转换方法

10 2月01 1月 by test16604225

受到unix时间戳的启发,我发现时间转成秒数后会非常好处理,在程序当中不再是以字符串的形式处理,不管时间的加减 […]

Continue reading
Posted in 未分类 · Leave a comment

详解python日志打印和写入并发实现代码

10 2月01 1月 by test16604225

大家一般都用logging日志打印,但logging是线程安全的,多进程也有很多介绍,引入一些文件锁,对log […]

Continue reading
Posted in 未分类 · Leave a comment

使用python将文件数据转换成二维列表的方法介绍

10 2月01 1月 by test16604225

贴一个做数据清洗时写的代码, 做数据处理时,原文件数据在进行处理时需要转换成一定格式, 原始文件数据:123. […]

Continue reading
Posted in 未分类 · Leave a comment

如何使用python中朴素贝叶斯算法的介绍

10 2月01 1月 by test16604225

这里再重复一下标题为什么是”使用”而不是”实现”: 首先,专业 […]

Continue reading
Posted in 未分类 · Leave a comment

pythonrsa加密解密和base64编解码介绍

10 2月01 1月 by test16604225

  最近有需求,需要研究一下rsa加密解密安全;在网上百度了一下例子文章,很少有文章介绍怎么保存、传输、打印加 […]

Continue reading
Posted in 未分类 · Leave a comment

python标准库学习re模块的详细介绍

10 2月01 1月 by test16604225

  re模块提供了一系列功能强大的正则表达式(regular expression)工具,它们允许你快速检查给 […]

Continue reading
Posted in 未分类 · Leave a comment

python内置iter函数详细介绍

10 2月01 1月 by test16604225

英文文档: iter(object[, sentinel]) return an iterator objec […]

Continue reading
Posted in 未分类 · Leave a comment

文章导航

Previous 1 … 219 220 221 222 223 224 225 226 227 228 229 … 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笔记 ·
程序猿 散文朗诵 鬼故事 佛学网