Use int function : int cast « Buildin Function « Python






Use int function

Use int function

print int('0100'), int('0100', 8), int('0x40', 16)

           
       

Related examples in the same category

1.Use int()Use int()