본문 바로가기

chargingport

검색하기
chargingport
프로필사진 chargingport

  • 분류 전체보기 (18)
    • NOTES (17)
      • STORAGE (2)
      • PYTHON (7)
      • LINUX (3)
      • ETC (5)
Guestbook
반응형
Notice
Recent Posts
Recent Comments
Link
«   2025/11   »
일 월 화 수 목 금 토
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
Tags
  • error
  • HuggingFace
  • reverse-proxy
  • python pip
  • 패키지
  • AI
  • pip3 upgrade
  • 파이썬
  • nginx-proxy
  • virtual-hosted-style
  • python3
  • Linux
  • daemon.json
  • docker
  • GGUF
  • 핍
  • modelfile
  • path-style
  • 리눅스
  • LLM
  • ollama
  • 버전
  • Save
  • 퍼이썬
  • Python
  • 용량
  • FileSystemError
  • Volumes
  • capacity
  • IQN
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록NOTES/PYTHON (7)

chargingport

Python dictionary 저장/불러오기

import pickle dict = {'A': 1, 'B': 2, 'C': 3} # dictionary를 dictionary.pkl에 저장 with open("dictionary.pkl", "wb") as output_file: pickle.dump(dict, output_file) # dictionary.pkl을 dictionary로 저장 with open("dictionary.pkl", "rb") as input_file: newDict = pickle.load(input_file) print(newDict) $ python3 main.py {'A': 1, 'B': 2, 'C': 3}​

NOTES/PYTHON 2023. 9. 5. 11:12
이전 Prev 1 2 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바