25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
340B

  1. from datetime import date
  2. def createfile():
  3. filenames = ["1Start","2Middle","3End"]
  4. todaystr = date.today().strftime("%y%m%d")
  5. if date.today().weekday() < 5:
  6. for filename in filenames:
  7. with open("journal/"+todaystr+"_"+filename,"w") as fh:
  8. pass
  9. if __name__ == '__main__':
  10. createfile()