Created
December 27, 2020 07:01
-
-
Save NaoY-2501/453b9f9ab9f7518f38041b89d540415e to your computer and use it in GitHub Desktop.
2020年ヤナミューセトリ集計スクリプト
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
counts = {} | |
BYB = ( | |
'Lily', | |
'morning', | |
'am I', | |
'Any', | |
'HOLY GRAiL', | |
'ルーブルの空', | |
'Stain', | |
'Nostalgia', | |
'レイライン', | |
'ラング' | |
) | |
with open('ysm_20200105-20201128.txt', 'r', encoding='utf-8') as f: | |
for line in f: | |
track = line.strip() | |
if '[' not in track: | |
if track in counts: | |
counts[track] += 1 | |
else: | |
counts[track] = 1 | |
print(counts) | |
for track in BYB: | |
print(track, counts[track]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment