python 2.4 的字符串转时间(日期减法取间隔时间)
摘要:
python 2.4中datetime有strftime方法,而无strptime方法。不能对字符串进行格式转换。比如不能将“2013-10-22”转化为日期。 2.4中字符串转日期并相减?怎么做? 必须google,不能百度: import time format = '%Y-%m-%d ... 阅读全文
posted @ 2013-10-22 20:44 代码王子 阅读(704) 评论(0) 推荐(0)
浙公网安备 33010602011771号