文章目录
1 windows中后台运行python程序
1.1 启动bat弹出界面
(1)main.py
import time
while True:
with open("log.txt",'a+',encoding="utf-8") as fw:
fw.write(time.strftime("%Y-%m-%d %H:%M:%S", time.loc
(1)main.py
import time
while True:
with open("log.txt",'a+',encoding="utf-8") as fw:
fw.write(time.strftime("%Y-%m-%d %H:%M:%S", time.loc