from datetime import datetime
import math
def test():
list = []
month = datetime.strftime(datetime.now(),"1")
year = datetime.strftime(datetime.now(),"%Y")
for i in range(3):
m = int(month) - i
if m>0:
list.append(str(year)+"-"+str(m))
else:
y = int(year)-1
t = int(12-math.fabs(int(m)))
tt = str(y) + "-" + str(t)
list.append(tt)
return list
res = test()
print(res)
结算工资近三月
最新推荐文章于 2026-06-19 17:00:49 发布

1366

被折叠的 条评论
为什么被折叠?



