with open("account1.pkl", "rb") as f: obj_loaded1 = pickle.load(f) # 从文件中加载实例 with open("date1.pkl", "rb") as f: obj_loaded2 = pickle.load(f)
时间: 2023-07-21 09:54:18 浏览: 211
It looks like you are using the `pickle` module to load objects from two files, "account1.pkl" and "date1.pkl", into `obj_loaded1` and `obj_loaded2` respectively.
`pickle.load()` is used to deserialize a Python object hierarchy from a file. When you open the file with the "rb" mode, it indicates that you are opening a binary file in read mode.
Assuming that the files exist and are valid pickle files, this code should load the objects from the files and store them in `obj_loaded1` and `obj_loaded2`.
After loading the objects, you can use them in your code as needed.
阅读全文