* 리눅스의 Python 2.6 으로 실행한 결과 Python 2.6.5 (r265:79063, Oct 1 2012, 22:04:36) [GCC 4.4.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> x = complex(1, 2./3) >>> x (1+0.66666666666666663j) >>> "{0.real:.5}+{0.imag:.5}j".format(x) '1.0+0.66667j' >>> "{0.real:.5f}{0.imag:+.5f}j".format(x) '1.00000+0.66667j' >>> print "{0.real:.5f}{0.imag:+.5f}j".format(x) 1.0000..