output

[Python] 다양한 문자 포멧팅 방법 [ 기준 : Python 2.7 ] 1. var = '%(foo)s %(foo)s %(foo)s' % { 'foo': 'look_at_me_three_times' } 2. var = '{0} {0} {0}'.format('look_at_meeee') 3. var = '{foo} {foo} {foo}'.format(foo = 'python you so crazy') [참고] https://stackoverflow.com/questions/6982949/output-formatting-in-python-replacing-several-s-with-the-same-variable
· 기타
[VSCode] Python 실행 시 terminal에서 한글 깨짐 발생 > .vscode/tasks.json 수정 - tasks.json 파일 여는 법 : ctrl + shift + p 누른 후 "Tasks: Configure Tasks" 선택 - python3이면 command에 python3로 입력하면 된다. { "version": "0.1.0", "command": "python", "isShellCommand": true, "args": ["${file}"], "showOutput": "always", "options": { "env": { "PYTHONIOENCODING": "UTF-8" } } } + 추가 인코딩을 utf8이 아닌 EUC-KR로 변경하면 된다. 위에는 utf8으로 아래는 eu..
S0PH1A
'output' 태그의 글 목록