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
相關文章
相關標籤/搜索