본문 바로가기

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/06   »
일 월 화 수 목 금 토
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
  • Database
  • Flask
  • Converting
  • numpy
  • Package
  • pytorch
  • file
  • Python
  • list
  • TORCH
  • judge
  • CUDA
  • docker
  • Mac
  • AI
  • KAKAO
  • LLM
  • Windows
  • Laravel
  • GitLab
  • evaluation
  • Linux
  • PostgreSQL
  • pandas
  • Paper
  • git
  • format
  • enV
  • DB
  • Container
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록DICT (1)

Daily Develope

[Python] 정렬 Sort (Dict, Class)

Dict. 내부 정렬 ㅇ 샘플 samples = {'c':2, 'a':4, 'b':3, 'd':1, 'e':0} ㅇ 정렬 (숫자/value 기준 오름차순 정렬) sortedList = dict(sorted(samples.items(), key=lambda s: s[1])) print(sortedList) ----- {'e': 0, 'd': 1, 'c': 2, 'b': 3, 'a': 4} Dict. List 정렬 ㅇ 샘플 samples = [ {"name":"a", "score":50}, {"name":"b", "score":60}, {"name":"c", "score":20}, {"name":"d", "score":70}, {"name":"e", "score":20}, {"name":"e", "score..

Develope/Python 2022. 4. 11. 15:30
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바