If x is not a Python int object, it has to define an __index__() method that returns an ... string representation for a float, use the float.hex() method.
確定! 回上一頁