Skip to content
  • About Me

charlie笔记

A programmer’s note boke for work and life

作者:test31297505

python字符串常用大全

20 6月01 1月 by test31297505

字符串相关操作: + :string1+string2 #联接字符串,将后一个串链接到前一个串的后面 * :s […]

Continue reading
Posted in 未分类 · Leave a comment

python批量复制文件

20 6月01 1月 by test31297505

数据库里导出了一个excel,里面包含了一些图片文件的文件名,需把对应文件要从服务器上下载,程序未提供图片批量 […]

Continue reading
Posted in 未分类 · Leave a comment

python高级之

20 6月01 1月 by test31297505

python一切皆对象(object),每个对象都可能有多个属性(attribute)。python的属性有一 […]

Continue reading
Posted in 未分类 · Leave a comment

python变长参数

20 6月01 1月 by test31297505

感觉python的变长参数还是蛮好用的,记录下,便于查询。 def selectsql(self, sqlst […]

Continue reading
Posted in 未分类 · Leave a comment

python

20 6月01 1月 by test31297505

python 发邮件 # import smtplib for the actual sending func […]

Continue reading
Posted in 未分类 · Leave a comment

python递归打印指定路径下的所有文件

20 6月01 1月 by test31297505

输入一个路径,显示文件下所有的子目录。 import os def list_all_path(path): […]

Continue reading
Posted in 未分类 · Leave a comment

用python语言实现的最短路spfa算法

20 6月01 1月 by test31297505

最近在学习python,对于一个c系列语言深度中毒的人来说很多问题需要抛弃旧的认识并重新理解 #coding= […]

Continue reading
Posted in 未分类 · Leave a comment

python源码学习之对象创建和对象的行为

20 6月01 1月 by test31297505

在将对象的创建和行为之前,我们先来看一下类型对象,python是弱类型语言,但并不代表python没有类型,p […]

Continue reading
Posted in 未分类 · Leave a comment

python元类

20 6月01 1月 by test31297505

元类有什么用? 很好的问题,元类将用在创建使用了它的新类时调用,这里是一些关于这样做的好处的观点: ◆ 装饰( […]

Continue reading
Posted in 未分类 · Leave a comment

python入门读写文件

20 6月01 1月 by test31297505

1.打开文件,读取所有内容 file_object = open(‘thefile.txt&#82 […]

Continue reading
Posted in 未分类 · Leave a comment

pythonshelve模块

20 6月01 1月 by test31297505

shelve shelve是一额简单的数据存储方案,他只有一个函数就是open(),这个函数接收一个参数就是文 […]

Continue reading
Posted in 未分类 · Leave a comment

python获取当前时间

20 6月01 1月 by test31297505

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

Continue reading
Posted in 未分类 · Leave a comment

python正则表达式中的中文匹配例子

20 6月01 1月 by test31297505

#coding=utf-8 import re from urllib2 import urlopen web […]

Continue reading
Posted in 未分类 · Leave a comment

冒泡排序python实现

20 6月01 1月 by test31297505

开始学习python,格式神马的都是浮云,直接上数据结构的算法。毕竟读代码学习最快 1 接受输入的py代码,以 […]

Continue reading
Posted in 未分类 · Leave a comment

python实现二叉树的中序遍历

20 6月01 1月 by test31297505

#!/usr/bin/env python # coding=utf-8 # inorderbl.py imp […]

Continue reading
Posted in 未分类 · Leave a comment

python实现选择排序

20 6月01 1月 by test31297505

#!/usr/bin/env python #coding=utf-8 #choosesort.py #use […]

Continue reading
Posted in 未分类 · Leave a comment

python的range()方法

20 6月01 1月 by test31297505

使用python的人都知道range()函数很方便,今天再用到他的时候发现了很多以前看到过但是忘记的细节。这里 […]

Continue reading
Posted in 未分类 · Leave a comment

python列表list去重

20 6月01 1月 by test31297505

python 列表list去重 一.{}.fromkeys(list).keys() list2 = {}.f […]

Continue reading
Posted in 未分类 · Leave a comment

python中文乱码

20 6月01 1月 by test31297505

开始接触python脚本,一上来就碰到了中文乱码问题。 结合网上的资料,现整理下: 字符串在python内部的 […]

Continue reading
Posted in 未分类 · Leave a comment

java调python脚本

20 6月01 1月 by test31297505

import java.io.bufferedreader; import java.io.inputstre […]

Continue reading
Posted in 未分类 · Leave a comment

在java中调用python方法

20 6月01 1月 by test31297505

1.在java类中直接执行python语句 view plain import javax.script.*; […]

Continue reading
Posted in 未分类 · Leave a comment

python类以及继承操作代码示例

20 6月01 1月 by test31297505

直接贴自己写的代码做参考: #encoding=utf-8 __author__ = ‘admin […]

Continue reading
Posted in 未分类 · Leave a comment

python实现定时弹窗提醒

20 6月01 1月 by test31297505

经常用电脑,一坐就是几个小时,总是忘记时间,所以觉得是不是找个定时提醒软件。网上找了还真有还很多,找了一个卫士 […]

Continue reading
Posted in 未分类 · Leave a comment

python字符串反转

20 6月01 1月 by test31297505

python 字符串反转 1. python 字符转切片实现 python代码 name = tramp pr […]

Continue reading
Posted in 未分类 · Leave a comment

pythonlist排序

20 6月01 1月 by test31297505

实例1: >>>l = [2,3,1,4] >>>l.sort() >>>l >>>[1,2,3,4] 实例2 […]

Continue reading
Posted in 未分类 · Leave a comment

python数组

20 6月01 1月 by test31297505

python数组1,常见习题: 测试题: 0.列表都可以存放一些什么东西? 答:整数,浮点数,字符串,对象,存 […]

Continue reading
Posted in 未分类 · Leave a comment

python在python中使用mysql

20 6月01 1月 by test31297505

缘由   近期在折腾一个小东西须要抓取网上的页面。然后进行解析。将结果放到数据库中。   了解到python在 […]

Continue reading
Posted in 未分类 · Leave a comment

python调用c程序的结构体和函数

20 6月01 1月 by test31297505

c代码如下: #include typedef struct testdll_ { int a; char * […]

Continue reading
Posted in 未分类 · Leave a comment

python获取本地时间/日期格式化

20 6月01 1月 by test31297505

获取当前时间: python代码 import time print time.time() #获取当前时间 […]

Continue reading
Posted in 未分类 · Leave a comment

python字符串处理

20 6月01 1月 by test31297505

python 把字符串 转换成 字典 a={“cardtype”:”a71 […]

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