Skip to content
  • About Me

charlie笔记

A programmer’s note boke for work and life

作者:test31297505

用python删除java文件头上版权信息的方法

20 6月01 1月 by test31297505

在使用他人代码时,为不保留文件头部版权信息,需要一个个删掉,费时费力, 写了个脚本,简单清除掉目录下所有的文件 […]

Continue reading
Posted in 未分类 · Leave a comment

python简单格式化时间的方法【strftime函数】

20 6月01 1月 by test31297505

本文实例讲述了python简单格式化时间的方法,分享给大家供大家参考,具体如下: walker经常用到当前时间 […]

Continue reading
Posted in 未分类 · Leave a comment

python中取整的几种方法小结

20 6月01 1月 by test31297505

前言 对每位程序员来说,在编程过程中数据处理是不可避免的,很多时候都需要根据需求把获取到的数据进行处理,取整则 […]

Continue reading
Posted in 未分类 · Leave a comment

python对json的相关操作实例详解

20 6月01 1月 by test31297505

本文实例分析了python对json的相关操作。分享给大家供大家参考,具体如下: 什么是json: json( […]

Continue reading
Posted in 未分类 · Leave a comment

python基础学习代码之执行环境

20 6月01 1月 by test31297505

class c(object): def __call__(self, *args, **kwargs): p […]

Continue reading
Posted in 未分类 · Leave a comment

python的collections模块中namedtuple结构使用示例

20 6月01 1月 by test31297505

namedtuple 就是命名的 tuple,比较像 c 语言中 struct。一般情况下的 tuple 是 […]

Continue reading
Posted in 未分类 · Leave a comment

python基础学习代码之函数和函数式编程

20 6月01 1月 by test31297505

def func1(): print ‘hello world’ res = func […]

Continue reading
Posted in 未分类 · Leave a comment

详解python中的相对导入和绝对导入

20 6月01 1月 by test31297505

前言 python 相对导入与绝对导入,这两个概念是相对于包内导入而言的。包内导入即是包内的模块导入包内部的模 […]

Continue reading
Posted in 未分类 · Leave a comment

pythonfabric实现远程操作和部署示例

20 6月01 1月 by test31297505

近期接手越来越多的东西,发布和运维的工作相当机械,加上频率还蛮高,导致时间浪费还是优点多。修复bug什么的,测 […]

Continue reading
Posted in 未分类 · Leave a comment

pythonfabric实现远程部署

20 6月01 1月 by test31297505

python fabric实现远程部署 需求描述 在多人协同开发项目的过程中,几乎每天我们都要提交代码到git […]

Continue reading
Posted in 未分类 · Leave a comment

python时间处理datetime实例

20 6月01 1月 by test31297505

同时,关于datetime也是简单介绍。因为有很多东西需要自己去使用,去查帮助才最有效。例子:计算上一个星期五 […]

Continue reading
Posted in 未分类 · Leave a comment

python中操作mysql的pymysql模块详解

20 6月01 1月 by test31297505

前言 pymsql是python中操作mysql的模块,其使用方法和mysqldb几乎相同。但目前pymysq […]

Continue reading
Posted in 未分类 · Leave a comment

ubuntu12.0464位对python源代码编译详解

20 6月01 1月 by test31297505

ubuntu下python源代码编译 环境: ubuntu 12.04 64位 liaops@ay130611 […]

Continue reading
Posted in 未分类 · Leave a comment

ubuntu16.04lts中源码安装python3.6.0的方法教程

20 6月01 1月 by test31297505

前提 官网上提供了 mac 和 windows 上的安装包和 linux 上安装需要的源码。 下载地址如下: […]

Continue reading
Posted in 未分类 · Leave a comment

python使用pymysql实现操作mysql

20 6月01 1月 by test31297505

pymsql是python中操作mysql的模块,其使用方法和mysqldb几乎相同。但目前pymysql支持 […]

Continue reading
Posted in 未分类 · Leave a comment

python时间操作例子和时间格式化参数小结

20 6月01 1月 by test31297505

1.取过去具体时间的方法: 代码如下: #!/usr/bin/python import time #取一天前 […]

Continue reading
Posted in 未分类 · Leave a comment

python时间戳与格式化时间的转化实现代码

20 6月01 1月 by test31297505

python 里面与时间有关的模块主要是 time 和 datetime 如果想获取系统当前时间戳:time. […]

Continue reading
Posted in 未分类 · Leave a comment

python连接mysql数据库的正确姿势

20 6月01 1月 by test31297505

python 数据库接口支持非常多的数据库,你可以选择适合你项目的数据库: gadfly msql mysql […]

Continue reading
Posted in 未分类 · Leave a comment

在python中处理字符串之isdecimal()方法的使用

20 6月01 1月 by test31297505

isdecimal()方法检查字符串是否仅由十进制字符组成。此方法只存在于unicode对象。 注意:要定义一 […]

Continue reading
Posted in 未分类 · Leave a comment

python基础学习代码之文件和输入输出

20 6月01 1月 by test31297505

import os ls = os.linesep def func1(): filename = raw_i […]

Continue reading
Posted in 未分类 · Leave a comment

python基础学习代码之条件和循环

20 6月01 1月 by test31297505

def func1(): alist = [‘cathy’,’terry& […]

Continue reading
Posted in 未分类 · Leave a comment

pythonfabric实现远程部署

20 6月01 1月 by test31297505

python fabric实现远程部署 需求描述 在多人协同开发项目的过程中,几乎每天我们都要提交代码到git […]

Continue reading
Posted in 未分类 · Leave a comment

pythondatetime时间格式化去掉前导0

20 6月01 1月 by test31297505

python时间格式化的时候,去掉前导0的: dt = datetime.now() print dt.str […]

Continue reading
Posted in 未分类 · Leave a comment

更改ubuntu默认python版本的两种方法python

20 6月01 1月 by test31297505

你可以按照以下方法使用 ls 命令来查看你的系统中都有那些 python 的二进制文件可供使用。 $ ls / […]

Continue reading
Posted in 未分类 · Leave a comment

ubuntu下安装python多版本的方法及注意事项

20 6月01 1月 by test31297505

今天一不小心又把ubuntu系统给完坏了,因为我把python3卸载了,然后就。。。好了,不废话了,接下来就说 […]

Continue reading
Posted in 未分类 · Leave a comment

python简单实现获取当前时间

20 6月01 1月 by test31297505

说起计算机中的时间,还有一些比较有意思的事,比如我们经常听到的unix时间戳,utc时间,格林威治时间等,从表 […]

Continue reading
Posted in 未分类 · Leave a comment

pythonparamiko实现ssh远程访问的方法

20 6月01 1月 by test31297505

安装paramiko后,看下面例子: 代码如下: import paramiko #设置ssh连接的远程主机地 […]

Continue reading
Posted in 未分类 · Leave a comment

python基础学习代码之错误和异常

20 6月01 1月 by test31297505

def func1(): try: return float(‘abc’) excep […]

Continue reading
Posted in 未分类 · Leave a comment

ubuntu系统下python链接mysql数据库的方法

20 6月01 1月 by test31297505

进入root 权限下 apt-get install mysql-server apt-get install […]

Continue reading
Posted in 未分类 · Leave a comment

python开发如何在ubuntu15.10上配置vim

20 6月01 1月 by test31297505

1,安装vim,你可以使用ubuntu 自带的apt-get 工具安装。 apt-get install vi […]

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