d Matches an optionally signed decimal integer, whose format is the same as expected for the subject sequence of the strtol function with the value 10 for the base argument. The corresponding argument shall be a pointer to signed integer.
i Matches an optionally signed integer, whose format is the same as expected for the subject sequence of the strtol function with the value 0 for the base argument. The corresponding argument shall be a pointer to signed integer.
찾다보니 이런게 나오긴 하는데 차이점은 %d의 경우 부호가 있는 10진법의 정수를 의미하고 %i의 경우 부호가 있는 정수라고만 표현하네요.
댓글 1개
참고:
https://stackoverflow.com/questions/17680256/what-is-the-difference-between-i-and-d-in-python
https://codedragon.tistory.com/m/9909