pythion专题

Pythion获取当前月和上一个月的月份

# -*- coding:utf-8 -*-__author__ = 'yanxin_ryan'import timeclass Test(object):def run(self):now_month = time.localtime()[1] or 12print('当前月份: ', now_month)last_month = time.localtime()[1]-1 or 12pri