Archive for the ‘Python’ Category

抽空学着玩玩Python   Leave a comment

一门优雅且突出核心的脚本语言,也是很好的玩具   Complex numbers are always represented as two floating point numbers, the real and imaginary part. To extract these parts from a complex number z, use z.real and z.imag. >>> a=1.5+0.5j >>> a.real 1.5 >>> a.imag 0.5 The conversion functions to floating point and integer (float(), int() and long()) don’t work for complex numbers [...]

Posted September 13, 2006 by garfilone in Python

Follow

Get every new post delivered to your Inbox.