轻松解析克隆英雄图表!.
chparse的Python项目详细描述
chparse-轻松解析克隆英雄图表!
安装
通过以下方式安装稳定版本:
pip install chparse
或通过以下方式安装最新的开发(不稳定)版本:
git clone https://github.com/Kenny2github/chparse.git cd chparse python setup.py install
示例用法
假设.chart文件名为“notes.chart”…
>>>importchparse>>>withopen('notes.chart')aschartfile:...chart=chparse.load(chartfile)>>>chart.instruments[chparse.EXPERT][chparse.GUITAR].notes[0]<Note:0=N30(<Flags.NONE:0>)>