Skip to content

Instantly share code, notes, and snippets.

View ikeikeikeike's full-sized avatar
🈵
Working

ikedat / Tatsuo Ikeda ikeikeikeike

🈵
Working
  • 3C
  • Tokyo, Japan
  • 08:55 (UTC +09:00)
View GitHub Profile
@ikeikeikeike
ikeikeikeike / great-namer.py
Created August 27, 2023 15:05
Great Namer.
stroke_data = {}
with open("./ucs-strokes.txt", "r", encoding="utf-8") as file:
lines = file.readlines()
for line in lines:
if not line.startswith("#"):
parts = line.strip().split("\t")
if len(parts) == 3:
_, char, count = parts
try:
stroke_data[char] = int(count)
1