print('art : %5d, price per unit : %8.2f' %(453,59.058))
이거 할때 decimal쓰신걸 보고 왜 integer를 안 쓰셨지? 생각해서
>>> print('art : %5i, price per unit : %8.2f' %(453,59.058))
이렇게 d 대신 i를 입력해보니 정상적으로 같은 결과로 출력이 되더라고요.
원래 이런 건가요? python언어에서 decimal=integer를 같은 것으로 받아들이고 써도 되는지 궁금합니다.