mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2026-11-02 18:50:06 +08:00
refactor code
This commit is contained in:
@@ -6,7 +6,9 @@ FILE_PATH = os.path.dirname(__file__)
|
||||
QIU_QIU_WORD = {}
|
||||
QIU_QIU_PHRASE = {}
|
||||
|
||||
with open(os.path.join(FILE_PATH, 'qiu_qiu_dictionary.json'), 'r', encoding='UTF-8') as f:
|
||||
with open(
|
||||
os.path.join(FILE_PATH, "qiu_qiu_dictionary.json"), "r", encoding="UTF-8"
|
||||
) as f:
|
||||
data = json.load(f)
|
||||
QIU_QIU_WORD = data["word"]
|
||||
QIU_QIU_PHRASE = data["phrase"]
|
||||
|
||||
Reference in New Issue
Block a user