feat: added some comments

This commit is contained in:
RTAkland
2021-12-20 21:23:10 +08:00
parent 28e1319ee3
commit 0c6a267967
4 changed files with 20 additions and 3 deletions

View File

@@ -10,6 +10,10 @@ import json
def Language():
"""
读取配置文件中的语言选项并返回相对因的语言文件的读取结果
:return:
"""
with open('./config.yml', 'r', encoding='utf-8') as lang:
config = YAML().load(lang.read())
language_sel = config['client-settings']['language']