[python]获取当前年月

import time

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

 

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