Created
October 23, 2022 00:08
-
-
Save naoyashiga/debe0f9e4f0073c3fb089271a1de2c84 to your computer and use it in GitHub Desktop.
オノマトペ一覧取得
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
""" | |
雑です。日本語として成立していないものも出力されます。 | |
5600個くらい出ます。 | |
""" | |
excludes = 'ぁぃぅぇぉゔゕゖゐゑゎ' | |
hiragana = [chr(i) for i in range(ord("ぁ"), ord("ゖ")+1) if chr(i) not in excludes] | |
print("".join(hiragana)) | |
count = 1 | |
for first in hiragana: | |
for second in hiragana: | |
print(f'{count}:{first}{second}{first}{second}') | |
count = count + 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
出力例