问题 What is the Python equivalent of these C types: float double long I want to represent a float in the above three forms. 回答1: I believe you mean types , not functions. In C, a double is just a double-precision float (meaning smaller numbers are represented more accurately). In Python, it's just a float . Similarly, a long is (was) just an int that stored larger numbers. In Python 2, there is int , long , and float . However, Python automatically promotes int to long when it grows above sys