python 日期转星期
2015-06-03 10:36
441 查看
import time import datetime today = int(time.strftime('%w')) print today anyday = datetime.datetime(2012, 04, 22).strftime('%w') print anyday
相关文章推荐
- Python第四节FUNCTIONS学习汇总。
- 总结的几个Python函数方法设计原则
- python异常处理
- Python使用ftplib实现简易FTP客户端的方法
- Python中的深拷贝和浅拷贝详解
- python处理二进制数据的方法
- Python+Django windows安装
- python 安装第三方库 PIL
- Python读写配置文件的方法
- Python:数字
- Python:字符串
- Python:列表,元组
- Python:映像、集合
- [转]Python文件操作
- python操作ssh实现服务器日志下载的方法
- Python 抓取并解析 HTML
- Python实现建立SSH连接的方法
- python 操作 MySql 数据库
- python的virtualenv环境与使用
- 解密Python中的描述符(descriptor)