Python/CodeUp
1031 - 10진 정수 1개 입력받아 8진수로 출력하기
GLOWWW
2021. 2. 18. 18:15
dec = input()
print("%0o" % int(dec))
%0o 혹은 %0O를 사용함으로써 10진수를 8진수로 변환 시켜준다.