import datetime
import os
theTime = datetime.datetime.now()
print(theTime)
theTime = str(theTime)
date_split = theTime.strip().split(' ')
date_today = date_split[0].replace('-', '_')
date_clock = date_split[-1]
date_clock = date_clock.strip().split('.')[0]
date_clock = date_clock.replace(':', '_')
date_show = date_today + '-' + date_clock
print(date_show)
out_path = "./" + date_show
if not os.path.isdir(out_path):
    os.makedirs(out_path)

  

相关文章:

  • 2022-02-14
  • 2022-01-17
  • 2021-10-20
  • 2022-03-02
  • 2021-06-06
  • 2022-01-23
  • 2022-01-14
猜你喜欢
  • 2022-12-23
  • 2021-04-20
  • 2021-11-28
  • 2021-05-27
相关资源
相似解决方案