[python]获取当前年月

import time

time.strftime('%Y%m',time.localtime(time.time()))#获取当前年月

 

posted @ 2016-04-08 15:23  CQ_LQJ  阅读(1020)  评论(1)    收藏  举报