python date

1
2
3
4
5
6
from datetime import datetime
now = datetime.now()
logdir = now.strftime("%Y%m%d-%H%M%S") + "/"
self.file_writer = tf.summary.FileWriter(self.config.dir_output + "train-" + logdir,
self.sess.graph)
self.file_epoch_writer = tf.summary.FileWriter(self.config.dir_output + "test-" + logdir)
请作者喝一杯咖啡☕️