Skip to content
This repository was archived by the owner on Aug 22, 2025. It is now read-only.

修复login读取空json#122

Open
damifan3 wants to merge 2 commits intosld272:mainfrom
damifan3:main
Open

修复login读取空json#122
damifan3 wants to merge 2 commits intosld272:mainfrom
damifan3:main

Conversation

@damifan3
Copy link

@damifan3 damifan3 commented Jul 2, 2025

但是每次 try 都要以 w 模式 open config 文件try:with open("config.json", "w", encoding="utf-8") as f:
一旦通过 w 模式打开文件,文件立马被清空!
所以之前初始化的操作全都没有用了!下一次 try 的时候,有了目标 url,进入 if 读取 json 就会报错。

damifan3 added 2 commits July 2, 2025 21:01
login修复读取空json
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant