This commit is contained in:
2022-02-17 22:27:21 +03:00
parent 737fe3b0df
commit 05577091b4
2 changed files with 23 additions and 5 deletions

9
test.py Normal file
View File

@@ -0,0 +1,9 @@
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')