Mega Code Archive

 
Categories / Python / Buildin Function
 

Use int function

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