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

17 lines
426B

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