본문 바로가기

Daily Develope

검색하기
Daily Develope
프로필사진 noggame

  • 분류 전체보기 (109)
    • Develope (53)
      • Python (31)
      • Web (18)
      • ETC (4)
    • AI (16)
    • DB (6)
    • MicroService (7)
      • Docker (6)
      • Kubernetes (1)
    • OS (15)
      • Linux (10)
      • Windows (1)
      • Mac (4)
    • Git (7)
    • Algorithm (1)
    • Favorite (1)
      • 책갈피 (1)
      • Music (0)
Guestbook
Notice
  • migration 중입니다...
Recent Posts
Recent Comments
Link
«   2025/05   »
일 월 화 수 목 금 토
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
Tags
  • pandas
  • file
  • GitLab
  • LLM
  • docker
  • Python
  • Laravel
  • Mac
  • KAKAO
  • evaluation
  • Container
  • PostgreSQL
  • TORCH
  • git
  • Database
  • pytorch
  • judge
  • Windows
  • CUDA
  • AI
  • numpy
  • enV
  • list
  • format
  • Converting
  • Linux
  • Paper
  • Flask
  • DB
  • Package
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록serialization (1)

Daily Develope

[Python] Pickle library (object serialization)

Pickle이란? Python의 객체(Object)를 binary 파일로 serializing 하거나 반대로 binray 파일로부터 de-serializing 하기 위한 프로토콜이 구현된 라이브러리. 흔히 pickling, flattening, marshalling 등으로 일컫는다. 장점? Python 객체를 바로 파일로 쓰거나 읽을 수 있다. Binary(또는 Bytes) 형태로 데이터를 다루기 때문에 읽기/쓰기 속도가 빠르다. 읽기/쓰기 예시코드 import pickle import os my_filepath = "target/file/path/filename.bin" my_data = ['target', 'data'] if os.path.isfile(my_filepath): ### 읽기 with o..

Develope/Python 2023. 10. 17. 14:37
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바