int() #int(obj,base=10)
>>> int(4.5)
4
float()#(obj)
>>> float(4)
4.0
complex()#复数complex()str or complex(real,inag=0.0)
>>> complex(4)
(4+0j)
>>> complex(2.8e-10,2.3e4)
(2.8e-10+23000j)
bool()#bool()
>>> bool(1)
True
原文:http://www.cnblogs.com/timp/p/3665116.html