Python Built-in Functions

int('x',base=10) : x >> integer 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)
相關文章
相關標籤/搜索