标签:2014 on python res print date import port
#!/usr/bin/env python
import sys
import re
import datetime
dd = ‘2014-08-10‘
da = datetime.datetime.strptime(dd,‘%Y-%m-%d‘)
res = datetime.datetime.strftime(da, ‘%Y%m%d‘)
print res
标签:2014 on python res print date import port
原文地址:http://www.cnblogs.com/charlie-badegg/p/3922609.html