long('x',base=10) xL
bin():十进制转二进制 bin(2) = 0b10
oct():十进制转八进制
hex():十进制转十六进制 hex(2) = 0x2 hex(18) = 0x12
float.hex(1.5) = 0x1.80000000p+0
chr(113) = 'q'
unichr(113) = u'q'
ord('q') = 113
round(number,ndigits=0):Return the floating point value number rounded to ndigits digits after the decimal point.(四舍五入)
math.trunc(x) : 截取整数部分保留
math.floor(x) : 不大于x的最大整数
math.ceil(x) : 不小于x的最小整数