import time
store_date = time.strftime('%Y-%m-%d',time.localtime(time.time()))
print "今天是 beijingriqi_%s"%store_date
[output]:
今天是 beijingriqi_2017-08-09
import time
store_date = time.strftime('%Y-%m-%d',time.localtime(time.time()))
print "今天是 beijingriqi_%s"%store_date
[output]:
今天是 beijingriqi_2017-08-09