按月生成全部表(table_20150101,table_20150201,table_20150301,table_20150401...)
python + arrow
pip install arrow
import arrow
start = arrow.get(‘2015-01-01‘,‘YYYY-MM-DD‘)
end = arrow.get(‘2015-12-31‘,‘YYYY-MM-DD‘)
for dt in arrow.Arrow.range(‘month‘, start, end):
print(dt.format(‘YYYYMMDD‘))
本文出自 “dba天空” 博客,请务必保留此出处http://9425473.blog.51cto.com/9415473/1732069
原文:http://9425473.blog.51cto.com/9415473/1732069