som = SOM_CLASS() # includes many big difficult data structures
som.hard_work()
som.save_to_disk(filename)
#then later or another program
som = SOM_CLASS()
som.read_from_file(filename)
som.do_anythink_else()
或者
som = SOM_CLASS()
save(som)
#...
load(som)
som.work()
最简单的方法是什么?