def load_egg(filepath):
"""
Loads pickled egg
Parameters
----------
filepath : str
Location of pickled egg
Returns
----------
egg : Egg data object
A loaded unpickled egg
"""
with open(filepath, 'rb') as f:
egg = pickle.load(f)
return egg
评论列表
文章目录