본문 바로가기 메뉴 바로가기

More Code

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

More Code

검색하기 폼
  • Category (105)
    • Referece (4)
    • Series (55)
    • Piece (19)
    • Ongoing (18)
      • PythonNET (3)
      • Thread (3)
      • Operator (2)
      • String (8)
      • Mutable (2)
    • Puzzle (9)
      • ProjectEuler (3)
      • HackerRank (2)
      • Exercise (4)
  • 방명록

for [Python] List

# Python 3 items = [7, 'hi', 3.14, ['as', 3]] for item in items: print(item) """ Output7hi3.14['as', 3]"""

Series 2018. 6. 20. 17:07
for [Python] string

# Python 3 words = 'Python' for c in words: print(c) """ OutputPython""" # Python 3 words = 'Python' for i in range(len(words)): print(i, words[i]) """ Output0 P1 y2 t3 h4 o5 n""" # Python 3 words = 'Python' for i, c in enumerate(words): print(i, c) """ Output0 P1 y2 t3 h4 o5 n"""

Ongoing/String 2018. 6. 20. 17:03
for [Python] range

# Python 3 for i in range(4): print(i) """ Output0123"""

Series 2018. 6. 20. 17:00
이전 1 ··· 23 24 25 26 27 28 29 ··· 35 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
more
«   2025/08   »
일 월 화 수 목 금 토
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
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바