10 lines
164 B
Python
10 lines
164 B
Python
import time
|
|
import os
|
|
|
|
if os.path.isdir('log'):
|
|
print('log dir exist')
|
|
|
|
a = 'log/' + str(time.strftime("%Y-%m-%d %H:%M:%S")) + '.log'
|
|
print(a)
|
|
f = open(a, 'w')
|