본문 바로가기

당신의 친절한 이웃, 코딩맨

검색하기
당신의 친절한 이웃, 코딩맨
프로필사진 이웃집 친구

  • 분류 전체보기 (53)
    • 비전공개발자의 가시밭 길 (10)
    • Today I Learn (TIL) (42)
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
  • phython
  • CSS
  • 티스토리챌린지
  • Coding
  • 파이썬
  • 프리워커스
  • SSAFY
  • 위코드
  • 싸피
  • loaddata
  • vscode설치
  • 프로그래밍폰트
  • 파라미터
  • CSS #HTML #코드
  • 코딩
  • dumpdata
  • VSCode
  • comprehension
  • TIL #todayilearn #math #javascript #js #자바스크립트 #절댓값 #최댓값 #랜덤 #random #floor
  • wecode
  • HTML
  • 오블완
  • listdir
  • django
  • Python
  • 역사
  • LIST
  • html #css #코딩 #입문 #코딩시작하기 #코딩입문 #파이썬 #자바스크립트 #비전공자 #비전공 #코딩학원
  • Web
  • dangerouslySetInnerHTML
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록phython (1)

당신의 친절한 이웃, 코딩맨

#9 Python - list comprehension

표현 방법들 [표현식 for 변수 in 반복(순회) 가능한 객체] ex) numbers = [1, 2, 3, 4, 5] [i * 2 for i in numbers] #[2, 4, 6, 8, 10] [i for i in numbers if i % 2 ==0] #[2, 4] Well.. I really don't use those expressions that much tho; uhm.......maybe for the time will come. for i in range(len(numbers)): numbers[i] = int(numbers[i]) * 2 print(numbers) #[2, 4, 6, 8, 10] However, the list comprehension help your code shor..

Today I Learn (TIL) 2020. 5. 27. 20:57
Prev 1 Next

Blog is powered by kakao / Designed by Tistory

티스토리툴바