본문 바로가기
ops/other

[other] python print(f" ") 사용법

by seohan1010 2024. 7. 28.

 

 

이러한 코드가 있을때

 

 

a{}괄호안에 값을 받아서

"a1" 이렇게 괄호안의 값을 치환을 해준다.

 

 

 

a{1} b{2}

가 되므로

 

최종 결과는 a1 b1이 된다.