mirror of
https://gitea.pjck.top/Cookies/CookiesChartConverter.git
synced 2025-12-14 12:56:54 +08:00
优化输出(有用吗
This commit is contained in:
14
ReadOpt.py
14
ReadOpt.py
@@ -2,7 +2,7 @@ import xml.etree.ElementTree as ET
|
||||
|
||||
PLUS = "+"
|
||||
EMPTY = ""
|
||||
|
||||
level_name = ["Basic","Advanced","Expert","Master","Re:Master"]
|
||||
def parse_music_xml(file_path):
|
||||
# 解析 XML 文件
|
||||
tree = ET.parse(file_path)
|
||||
@@ -51,8 +51,10 @@ if __name__ == "__main__":
|
||||
print("音乐名称:", music_name)
|
||||
print("艺术家名称:", artist_name)
|
||||
print("启用谱面列表:")
|
||||
for idx, info in enumerate(note_infos, 1):
|
||||
print(f" 第{idx}个谱面:")
|
||||
print(f" 定数: {info['level']}")
|
||||
print(f" 难度: {info['levelshow']}")
|
||||
print(f" 谱面设计者: {info['designer']}")
|
||||
for i in range(len(note_infos)):
|
||||
print(level_name[i])
|
||||
print(f"等级:{note_infos[i]['levelshow']}")
|
||||
print(f"定数:{note_infos[i]['level']}")
|
||||
print(f"铺师:{note_infos[i]['designer']}")
|
||||
print()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user