1
0
Fork 0
EnglishPal/app/utils.py

13 lines
227 B
Python
Raw Normal View History

2025-05-26 19:20:32 +08:00
# utils.py
import os
import pickle_idea
def load_freq_history(path):
"""
Load frequency history from a given path.
"""
d = {}
if os.path.exists(path):
d = pickle_idea.load_record(path)
return d