Update: 初学记、佩文韵府 and 五车韵瑞
This commit is contained in:
13
佩文韵府/test_specific.py
Normal file
13
佩文韵府/test_specific.py
Normal file
@@ -0,0 +1,13 @@
|
||||
import json
|
||||
|
||||
with open('peiwenyunfu.json', 'r', encoding='utf-8') as f:
|
||||
data = json.load(f)
|
||||
|
||||
for rhyme, r_data in data.items():
|
||||
if rhyme in ["metadata", "preface"]:
|
||||
continue
|
||||
for word, content in r_data.get("词条", {}).items():
|
||||
if word in ["紫殿東", "少微東", "東海東", "日夜東", "隔西東"]:
|
||||
print(f"Word: {word}")
|
||||
print(f"Content: {content}")
|
||||
print("-" * 40)
|
||||
Reference in New Issue
Block a user