AI와 데이터의 모든 것

  • 홈
  • 태그
  • 방명록

Python dictionary 1

[Python Grammer] Comprehension - list, set, dictionary

python 특유의 문법으로 몇 줄의 긴 코드를 한줄로 처리할 수 있게 해주는 아주 편리한 문법이다. [Example 1 : list comprehension] list = [1,2,3,4] #Original total = 0 for i in list: total += i print(total) #List Comprehension print(sum(i for i in list)) [Example 2 : set comprehension] list2 = [['One', 1], ['Two', 2], ['Three', 3], ['Four',4]] #Original s = set() for i in list2: s.add(i[1]) #Set Comprehension s = {i[1] for i in list2} ..

Programming/python 2022.08.03
이전
1
다음
더보기
프로필사진

주니어입니다. 겸손하게 불도저처럼 나아가겠습니다☄️

  • 분류 전체보기 (189)
    • AI (0)
      • Fundamental (15)
      • Computer Vision (7)
      • Time Series (4)
      • Paper Review (1)
      • lectures (5)
    • Mathematics (33)
      • Linear Algebra (31)
      • Calculus (1)
    • Programming (95)
      • basic (2)
      • python (38)
      • python-numpy (2)
      • python-visualization (2)
      • python-deep learning (9)
      • python-computer vision (8)
      • python-nlp (3)
      • anaconda (5)
      • docker (1)
      • linux (13)
      • swift | mac (3)
      • matlab (1)
      • errors (8)
    • English (23)
      • monthly (15)
      • expressions (8)
    • Thought (5)
    • Holiday (1)

Tag

Linux, 인공지능, 모두를위한선형대수학, 데이터, 선형대수학, 벡터, tensor, 리눅스, 선형대수, 머신러닝, linearalgebra, 신경망모델, 부스트코스, Python, 칸아카데미, ML, 텐서플로우, 파이썬, TensorFlow, 딥러닝,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2025/12   »
일 월 화 수 목 금 토
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

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

티스토리툴바