未验证 提交 54a186df 编写于 作者: Z Zain 提交者: GitHub

Merge pull request #26 from LunaticTian/patch-1

Fix absolute path bug
......@@ -16,7 +16,12 @@ import time
import json
import logging
import math
import os
'''
使用绝对路径时,切换到项目的当前目录。
'''
os.chdir(os.path.dirname(os.path.abspath(__file__)))
logFile = open("run.log", encoding="utf-8", mode="a")
logging.basicConfig(stream=logFile, format="%(asctime)s %(name)s:%(levelname)s:%(message)s", datefmt="%Y-%m-%d %H:%M:%S", level=logging.INFO)
grade = [10,40,70,130,200,400,1000,3000,8000,20000]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册