Skip to content

Instantly share code, notes, and snippets.

@NaoY-2501
Created December 27, 2020 07:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NaoY-2501/453b9f9ab9f7518f38041b89d540415e to your computer and use it in GitHub Desktop.
Save NaoY-2501/453b9f9ab9f7518f38041b89d540415e to your computer and use it in GitHub Desktop.
2020年ヤナミューセトリ集計スクリプト
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