gangly/datafaker

date_this_month 类型打印错误

bochuan122 opened this issue · 2 comments

C:\Users\87293\Desktop\datafaker
λ datafaker file ./ t_date 5 --meta t_date.txt --outprint

sequence item 0: expected str instance, datetime.date found
sequence item 0: expected str instance, datetime.date found
sequence item 0: expected str instance, datetime.date found
sequence item 0: expected str instance, datetime.date found
sequence item 0: expected str instance, datetime.date found
time used: 0.130 s

C:\Users\87293\Desktop\datafaker
λ cat t_date.txt
c_date || date || 当前月份[:date_this_month]
C:\Users\87293\Desktop\datafaker
λ cat t_date
2020-06-03
2020-06-08
2020-06-13
2020-06-06
2020-06-05

C:\Users\87293\Desktop\datafaker
λ datafaker file ./ t_date 5 --meta t_date.txt --outprint

sequence item 0: expected str instance, datetime.date found
sequence item 0: expected str instance, datetime.date found
sequence item 0: expected str instance, datetime.date found
sequence item 0: expected str instance, datetime.date found
sequence item 0: expected str instance, datetime.date found
time used: 0.130 s

C:\Users\87293\Desktop\datafaker
λ cat t_date.txt
c_date || date || 当前月份[:date_this_month]
C:\Users\87293\Desktop\datafaker
λ cat t_date
2020-06-03
2020-06-08
2020-06-13
2020-06-06
2020-06-05

date_this_month标记是产生这个月内的日期,请仔细查看文档

抱歉,可能描述的不太清楚,标记产生当前月份的日期这点没理解错误。我是想确认使用屏幕打印命令参数时,输出类型与预期不符的原因。
sequence item 0: expected str instance, datetime.date found