Skip to content
  • About Me

charlie笔记

A programmer’s note boke for work and life

作者:helenadmin

python的词法分析与语法分析

12 9月10 11月 by helenadmin

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

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编写的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

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

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

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

12 9月10 11月 by helenadmin

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

Continue reading
Posted in Python · Leave a comment

python获取当前时间的方法

12 9月10 11月 by helenadmin

我有的时候写程序要用到当前时间,我就想用python去取当前的时间,虽然不是很难,但是老是忘记,用一次丢一次, […]

Continue reading
Posted in Python · Leave a comment

python删除文件示例分享

12 9月10 11月 by helenadmin

删除文件 代码如下: os.remove( filename ) # filename: “要删除 […]

Continue reading
Posted in Python · Leave a comment

python使用递归解决全排列数字示例

12 9月10 11月 by helenadmin

第一种方法:递归 代码如下: def perms(elements): if len(elements)

Continue reading
Posted in Python · Leave a comment

python基础教程之实现石头剪刀布游戏示例

12 9月10 11月 by helenadmin

下面是规则.你和你的对手,在同一时间做出特定的手势,必须是下面一种手势:石头,剪子,布.胜利者从下面的规则中产 […]

Continue reading
Posted in Python · Leave a comment

python网页请求urllib2模块简单封装代码

12 9月10 11月 by helenadmin

对python网页请求模块urllib2进行简单的封装。 例子: 代码如下: #!/usr/bin/pytho […]

Continue reading
Posted in Python · Leave a comment

python基础教程之获取本机ip数据包示例

12 9月10 11月 by helenadmin

这几天用到了raw socket,用python写了些demo程序,这里记录下。 首先我们看一个简单的snif […]

Continue reading
Posted in Python · Leave a comment

python3.3实现乘法表示例

12 9月10 11月 by helenadmin

代码如下: from stringhelper import padleft for x in range(1 […]

Continue reading
Posted in Python · Leave a comment

python中的yield使用方法

12 9月10 11月 by helenadmin

今天在看其他同事的代码时,发现一个没使用过的python关键字 :yield 先问了一下同事,听他说了几句,有 […]

Continue reading
Posted in Python · Leave a comment

python转换摩斯密码示例

12 9月10 11月 by helenadmin

代码如下: code = {‘a’: ‘.-‘, &#8216 […]

Continue reading
Posted in Python · Leave a comment

python基础教程之lambda表达式使用方法

12 9月10 11月 by helenadmin

python中,如果函数体是一个单独的return expression语句,开发者可以选择使用特殊的lamb […]

Continue reading
Posted in Python · Leave a comment

python根据经纬度计算距离示例

12 9月10 11月 by helenadmin

代码如下: /** * 计算两点之间距离 * @param _lat1 – start纬度 * @ […]

Continue reading
Posted in Python · Leave a comment

python操作列表的常用方法分享

12 9月10 11月 by helenadmin

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

Continue reading
Posted in Python · Leave a comment

python根据距离和时长计算配速示例

12 9月10 11月 by helenadmin

代码如下: function cal_pace(d,h,m,s){ var distance = d; var […]

Continue reading
Posted in Python · Leave a comment

python时间整形转标准格式的示例分享

12 9月10 11月 by helenadmin

代码如下: import osimport sysimport pickleimport stringimpo […]

Continue reading
Posted in Python · Leave a comment

python实现倒计时的示例

12 9月10 11月 by helenadmin

代码如下: import timecount = 0 a = input(‘time:&#8217 […]

Continue reading
Posted in Python · Leave a comment

python求素数示例分享

12 9月10 11月 by helenadmin

代码如下: # 判断是否是素数def is_sushu(num): res=true for x in ran […]

Continue reading
Posted in Python · Leave a comment

python检测服务器是否正常

12 9月10 11月 by helenadmin

经常使用python检测服务器是否能ping通, 程序是否正常运行(检测对应的端口是否正常) 以前使用shel […]

Continue reading
Posted in Python · Leave a comment

python实现排序算法

12 9月10 11月 by helenadmin

代码如下: def insertion_sort(n): if len(n) == 1: return n b […]

Continue reading
Posted in Python · Leave a comment

python定时器使用示例分享

12 9月10 11月 by helenadmin

代码如下: class sltimer(multiprocessing.process): #from dat […]

Continue reading
Posted in Python · Leave a comment

python动态监控日志内容的示例

12 9月10 11月 by helenadmin

日志文件一般是按天产生,则通过在程序中判断文件的产生日期与当前时间,更换监控的日志文件程序只是简单的示例一下, […]

Continue reading
Posted in Python · Leave a comment

python控制台显示时钟的示例

12 9月10 11月 by helenadmin

代码如下: #!/usr/bin/env python# coding: utf-8### show time […]

Continue reading
Posted in Python · Leave a comment

python多进程通信模块的简单实现

12 9月10 11月 by helenadmin

多进程通信方法好多,不一而数。刚才试python封装好嘅多进程通信模块 multiprocessing.con […]

Continue reading
Posted in Python · Leave a comment

python实现360的字符显示界面

12 9月10 11月 by helenadmin

代码如下: #!/usr/bin/python #-*-coding:utf-8-*- from push_b […]

Continue reading
Posted in Python · Leave a comment

python为tornado添加recaptcha验证码功能

12 9月10 11月 by helenadmin

代码如下: from urllib.request import urlopen from urllib.pa […]

Continue reading
Posted in Python · 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笔记 ·