load_pickle
-
說明:讀取 pickle 檔案。
-
參數
- path (
Union[str, Path]
):pickle 檔案的路徑。
- path (
-
傳回值
- dict:pickle 檔案的內容。
-
範例
import capybara as cb
path = '/path/to/your/pickle'
data = cb.load_pickle(path)
print(data)
# >>> {'key': 'value'}
說明:讀取 pickle 檔案。
參數
Union[str, Path]
):pickle 檔案的路徑。傳回值
範例
import capybara as cb
path = '/path/to/your/pickle'
data = cb.load_pickle(path)
print(data)
# >>> {'key': 'value'}