Functions are organized , Reusable , A piece of code used to implement a single or associated function , It can improve the modularity of application and the reuse rate of code . that Python What are the commonly used functions ? Xiaobian sorted out some for everyone .
Print() function : Print string ;
Raw_input() function : Capture characters from the user's keyboard ;
Len() function : Calculate character length ;
Format() function : Implement formatted output ;
Type() function : The type of the query object ;
Int() function 、float() function 、str() Functions, etc : Type conversion function ;
Id() function : Get the memory address of the object ;
Help() function :Python Help functions for ;
s.islower() function : The judgment character is lowercase ;
s.sppace() function : Judge whether it is a space ;
Str.replace() function : Replace character ;
Import() function : Import library ;
Math.pow() function : Calculate the power function ;
Time.sleep() function : Stop for a while ;
Random.randint() function : Generate random numbers ;
Range() function : Return a list , Print from 1-100;
File.read() function : Read the file and return the string ;
Def hello() function : Custom function ;
Import() function : Load extension library .