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

Python World

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

Python World

검색하기 폼
  • 분류 전체보기 (51)
    • Basic (7)
    • Standard Library (4)
      • built-in functions (1)
    • OOP (1)
    • Web Crawling (2)
    • Test Driven Development (6)
    • Django (20)
    • Microservices (2)
    • Vue.js (1)
    • 구매후기 (1)
  • 방명록

Standard Library/built-in functions (1)
Print() Open()

print(value, sep=' ', end='\n', file=sys.stdoutput, flush=False) with open('somefile.txt', 'wt') as f: print('hello world', file=f) Binary Data 읽고/쓰기 with open('somefile.bin', 'rb') as f: data = f.read() with open('somefile.bin', 'wb') as f: f.write(b'Hello World') t = "Hello World" t[0] # H for c in t: print(c) """ H e l l o """ b = b'Hello World' b[0] # 72 for c in b: print(c) """ 72 101 108 1..

Standard Library/built-in functions 2019. 6. 28. 13:18
이전 1 다음
이전 다음
최근에 올라온 글
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바