(ps='.md',start=100,n=100,path='.',year=2020,month=2,day=1)
| 27 | |
| 28 | |
| 29 | def batchCreate(ps='.md',start=100,n=100,path='.',year=2020,month=2,day=1): |
| 30 | |
| 31 | for i,day in zip(range(start,start+n),\ |
| 32 | getEverydaySince(year,month,day,n) \ |
| 33 | ): |
| 34 | with open(path+'/'+str(i)+ps,'w') as fw: |
| 35 | |
| 36 | fw.write(""" |
| 37 | ```markdown |
| 38 | @author jackzhenguo |
| 39 | @desc |
| 40 | @tag |
| 41 | @version |
| 42 | @date {} |
| 43 | ``` |
| 44 | """.format(datetime.strftime(day,'%Y/%m/%d'))\ |
| 45 | ) |
| 46 | print(day) |
| 47 | print('done') |
nothing calls this directly
no test coverage detected