1. String Functions 字符串函数
join -- joins a list of strings with anotherstring as a separator.
replace -- replaces onesubstring in a string with another.
startswith and endswith -- determineif there is a substring at the start and end of a string,respectively.
lower/upper -- to change the case of a string
split -- the opposite of join, turning a stringwith a certain separator into a list.
some examples:
2. Numeric Functions 数值函数
max -- find the maximum number in a list
min -- find the minimum number in a list
abs -- find the distance of a number from zero (its absolute value)
round --to round a number to a certain number of decimal places.
sum -- caculate the total of a list
some examples:
3. List Functions 列表函数
Often used in conditional statements.
all/any -- take a list as an argument,return True if all/any arguments evaluate to True.
enumerate -- can be used to iterate through the values and indices of a list simultaneously.
some examples: