摘要: #/usr/bin/python #coding=utf-8 #@Time :2017/11/9 8:55 #@Auther :liuzhenchuan #@File :时间格式的相互转换.py import time # datatime 是一个时间对象 print '##'*5 + 'datet 阅读全文
posted @ 2017-11-09 10:25 刘振川的博客 阅读(297) 评论(0) 推荐(0) 编辑
摘要: 一 datatime 的使用 object timedeta tzinfo time data datatime time: 在python文档里,time是归类在generk operating system services 中,换句话说,它提供的功能是更加接近于操作系统层面。 python 开 阅读全文
posted @ 2017-11-09 10:24 刘振川的博客 阅读(539) 评论(0) 推荐(0) 编辑
摘要: 一. python 常用内置模块的使用(datetime,logging,os,command) 在日常的开发工作中,我们要写很多的python 代码,如果都写在一个文件中,会导致代码特别难维护,为了拓展代码的可维护性,我们把函数写在不同的文件里,这样每个文件包含的文件就比较少,逻辑更加清楚。在py 阅读全文
posted @ 2017-11-09 10:23 刘振川的博客 阅读(361) 评论(0) 推荐(0) 编辑