파이썬 - 출력과 format 및 f문자열기본 출력 print기본 출력 함수 print는 이미 사용해 보았습니다.이번에는 포멧에 맞게 출력하는 방법을 알아 볼 거예요.print 함수를 사용할 때 값이나 표현을 입력 인자로 전달하여 출력했어요.[In]print(12)a = "hello"print(a)print(12, a)[Out]12hello12 helloformat 출력먼저 정수를 출력할 때 10진수, 8진수, 16진수로 출력할 수 있어요.format(정수,’d’)일 때는 10진수format(정수,’o’)일 때는 8진수format(정수,’x’)일 때는 16진수[In]num = 256print("===num===")print("10진수:",format(num,'d'))print("8진수:",format(n..