本软件打算用pyside6来做图形化界面,目前功能已做完,UI部分还没有设计
#function = 工具
import datetime
now = datetime.datetime.now()
date_str = now.strftime(“%Y-%m-%d”)
#输入
dayss = input()
#此为第一种格式的日期
d0 = ((now+datetime.timedelta(days=float(dayss))).strftime(“%Y-%m-%d”))
print(d0)
d1 = ((now+datetime.timedelta(days=float(dayss))).strftime(“%Y”))
d2 = ((now+datetime.timedelta(days=float(dayss))).strftime(“%#m”))
d3 = ((now+datetime.timedelta(days=float(dayss))).strftime(“%#d”))
sc = int(d1)
cx = int(d2)
cv = int(d3)
weeks = datetime.date(sc,cx,cv).isoweekday()
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/288241.html