강의

멘토링

커뮤니티

Inflearn Community Q&A

dennyi942597's profile image
dennyi942597

asked

Getting Started with Programming: Introduction to Python (Inflearn Original)

How to use Python Print (1-3)

이해가 잘 안됩니다 ㅜㅜ

Written on

·

146

0

print('%5s' % 'Python Study')

print('{:>10.5}'.format('Python Study'))

첫번째는 왼쪽정렬, 두번째는 오른쪽 정렬...왜그런건가요?

%10s와 {:>10}는 둘다 오른쪽 정렬이고

%-10s와 {:10}는 둘다 왼쪽 정렬인걸로 배웠는데, 헷갈리네요 ㅜㅜ

python

Answer 1

0

niceman님의 프로필 이미지
niceman
Instructor

안녕하세요.

시간 나실 때 아래 링크 사이트 한 번 읽어보세요.

정확하게 잘 정리되어 있습니다.

https://pyformat.info/

dennyi942597's profile image
dennyi942597

asked

Ask a question