写个函数,根据年数和第几天,输出日期
import datetimedef out_date(year,day): fir_day = datetime.datetime(year,1,1) zone = datetime.timedelta(days=day-1) return datetime.datetime.strftime(fir_day + zone, "%Y-%m-%d")print out_date(2016,221)