Category Quantity: Interview classic> Python
Author: alien invasion
Links: http://www.pythonheidong.com/blog/article/24/
Source: python black hole net www.pythonheidong.com
Function Description int (x [, base]) will be converted to an integer x long (x [, base]) will be a long integer x to a float (x) to convert to a floating-point number x complex (real [, imag]) creates a complex STR (x) to convert the string to an object x the repr (x) to convert the string to an expression object x eval (str) used to calculate the effective Python expression in the string, the object and returns a tuple ( s) to convert the sequence s is a tuple list (s) to convert the sequence s is a list of chr (x) to convert an integer to a character unichr (x) converts an integer Unicode character ord (x) a character into its integer hex (x) to convert an integer to a hexadecimal string oct (x) to convert an integer to a string octet