數字資料型別

數字在 Python 中有四種型別。Int,float,complex 和 long。

int_num = 10    #int value
float_num = 10.2    #float value
complex_num = 3.14j    #complex value
long_num = 1234567L    #long value