Notice
Recent Posts
Recent Comments
Tags
- fig ax 사용
- 티스토리 자동 목차
- 티스토리 목차
- magic command
- jupyter notebook shell commands
- matplotlib 객제 지향 방식
- tistory 목차
- tistory toc
- NewYork Times 읽기
- TOC
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