[ํ์ด์ฌ] f-string, ๋ฌธ์์ด ๊ธธ์ด ๊ณ ์
์ฐธ๊ณ python 3์์๋ f-string์ด ๊ฐ์ด๋ค. f-string ์ฌ์ฉ ๋ฐฉ๋ฒ๊ณผ ์ฌ์ฉํด์ผ ํ๋ ์ด์ Python ์์ ๋ฌธ์์ด์ ๋ค๋ฃฐ ๋๋ ์ฌ๋ฌ๊ฐ์ง ๋ฐฉ์์ผ๋ก ์ฌ์ฉํ ์ ์๋ค. ๋๋ถ๋ถ์ ์๋ง๋ ๊ธฐ์กด python 2์์ ์ง์ํ๋ %-formatting ๋ฐฉ์๊ณผ Format string syntax ์ธ str.fo.. bluese05.tistory.com ๊ฐ๋
์ฑ์ด ์ข๋ค ๋ณ์์ type์ ๋ํ ์์ ๋๊ฐ ๋ ๋๋ค. ๊ถ๊ธํ๋ ์ฝ๋ username_header = f"{len(username):
2020.09.18