python(6) packle

import pickle import os import random if os.path.exists("test"): print('exist') with open('test', 'rb') as f: state = pickle.load(f) random.setstate(state) else: random.seed(1
相关文章
相关标签/搜索