본문 바로가기

develop myself

검색하기
develop myself
프로필사진 insightous

  • 분류 전체보기 (27)
    • DataScience (15)
      • 통계분석 (4)
      • 머신러닝 (0)
      • Python (11)
    • Tips (7)
      • blog (7)
      • Tools (0)
      • git (0)
    • 영어 (4)
    • 자격증_ (0)
    • 문제해결과정_기록용 (1)
Guestbook
Notice
Recent Posts
Recent Comments
Tags
  • fig ax 사용
  • 티스토리 자동 목차
  • 티스토리 목차
  • magic command
  • jupyter notebook shell commands
  • matplotlib 객제 지향 방식
  • tistory 목차
  • tistory toc
  • NewYork Times 읽기
  • TOC
more
07-04 23:18
Archives
관리 메뉴
  • 글쓰기
  • 방명록
  • 관리

목록magic command (1)

develop myself

Python formatting: format() method, f-string

.format() method 기본적인 방법 In [1]: 'We are the {} who say "{}!"'.format('knights', 'Ni') Out[1]: 'We are the knights who say "Ni!"' 순서 명시 In [2]: '{0} and {1}'.format('spam', 'eggs') Out[2]: 'spam and eggs' In [3]: '{1} and {0}'.format('spam', 'eggs') Out[3]: 'eggs and spam' 변수명 명시 In [4]: 'This {food} is {adjective}.'.format( food='spam', adjective='absolutely horrible') Out[4]: 'This spam is abs..

DataScience/Python 2023. 1. 25. 14:33
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바