본문 바로가기

Daily Develope

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

  • 분류 전체보기 (112)
    • 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 (4)
      • 책갈피 (4)
      • Music (0)
Guestbook
Notice
  • migration 중입니다...
Recent Posts
Recent Comments
Link
«   2025/07   »
일 월 화 수 목 금 토
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
  • enV
  • numpy
  • pytorch
  • Python
  • Database
  • Package
  • Laravel
  • Paper
  • TORCH
  • Converting
  • 책갈피
  • judge
  • docker
  • Windows
  • Linux
  • AI
  • Flask
  • list
  • format
  • pandas
  • PostgreSQL
  • evaluation
  • Container
  • GitLab
  • LLM
  • Mac
  • DB
  • file
  • git
  • KAKAO
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록Deep (1)

Daily Develope

[Python] 알면 도움되는 자주쓰는 문법 (tips)

리스트 (List) List의 Item 한 줄씩 출력 my_list = ["line1", "line2", "line3"] print(f"{my_list}", sep="\n")List 간단한 명령 한 줄로 처리 ### 예) a 값이 None 인 경우를 제외하고 덧셈 값 반환 sample = [[1, 2], [3, 4], [None, 6]] sample = [a+b for a, b in sample if a != None] >> print(sample) [3, 7]List 의 index 및 값 순차출력 t_list = [1, 5, 7, 33, 39, 52] for tup in enumerate(t): print(tup) ### output (0, 1) (1, 5) (2, 7) (3, 33) (4, 39) (..

Develope/Python 2023. 4. 10. 11:00
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바