load pickle data from path Args: path (str): the path of pickle data Returns: object: the final data
(path: str)
| 40 | pickle.dump(obj, f) |
| 41 | |
| 42 | def load_pickle_data(path: str) -> object: |
| 43 | """load pickle data from path |
| 44 | |
| 45 | Args: |
| 46 | path (str): the path of pickle data |
| 47 | |
| 48 | Returns: |
| 49 | object: the final data |
| 50 | """ |
| 51 | with open(path, 'rb') as f: |
| 52 | data = pickle.load(f) |
| 53 | return data |
| 54 | |
| 55 | |
| 56 | class WechatySetting(UserDict): |