返回顶部

收藏

Complex numbers: represented as two floating point numbers

更多
#Complex numbers: 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
print a.real

print a.imag

标签:Python,Data,Type

收藏

0人收藏

支持

0

反对

0

发表评论