剛剛使用發現錯誤 #141
weisleepbird
started this conversation in
Ideas
剛剛使用發現錯誤
#141
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
在 MapleStoryAutoLevelUp-main 資料夾下建立 fix_fstring_quotes.py,內容如下
=====================================================
import os
import re
def fix_file(file_path):
with open(file_path, "r", encoding="utf-8") as f:
content = f.read()
def walk_and_fix(root_dir):
for subdir, _, files in os.walk(root_dir):
for file in files:
if file.endswith(".py"):
fix_file(os.path.join(subdir, file))
if name == "main":
walk_and_fix(".")
print("修正完成!請再執行 python -m src.main 試試看")
=====================================================
用命令提示字元執行:
python fix_fstring_quotes.py
等修正完,再執行:
python -m src.main
Beta Was this translation helpful? Give feedback.
All reactions