代码拉取完成,页面将自动刷新
import sys
import platform
import traceback
import pathlib
from loguru import logger
open("log.txt", "w").close()
logger.configure(
handlers=[
{"sink": sys.stdout, "level": "INFO"},
{"sink": "log.txt", "level": "DEBUG"},
]
)
def press_any_key_to_exit(msg="执行结束,按任意键退出"):
from sys import exit
logger.info(msg)
try:
if platform.system() == "Windows":
from msvcrt import getch
getch()
else:
input()
except KeyboardInterrupt:
exit()
except Exception:
logger.error(traceback.format_exc())
exit()
gen_path = pathlib.Path(sys.argv[0]).parent
config_path = gen_path / "config.json"
gacha_report_path = gen_path / "gachaReport.html"
logger.debug("gen_path: {}", gen_path)
logger.debug("config_path: {}", config_path)
logger.debug("gachaReportPath: {}", gacha_report_path)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。