python:: string format 변수처리
-os.system( 프로그램명 )으로 실행하면 python 외부 프로그램을 실행시킴 -이 때 프로그램명에 공백이 있으면, 인식을 제대로 안해서 변수명을 "string" 으로 넣어주어야 함. -간편해서 f-string만 매번 쓰다보니, 영상이나 예전 code 스타일로 구현된 %s 가 눈에 잘 안 들어옴 *결국 잘 가져와서 쓰려고 해도, 다 이해하고 써야 하는구나... import os my_program = "notepad.exe" #각기 다른 3가지 방법 : 모두 실행됨 os.system('"%s"' % my_program) os.system('{0}'.format(my_program)) os.system(f'{my_program}') % 서식문자 %s :: String %d :: Integer %f ..