float
|
atof(s)
Return the floating point number represented by the string s. |
|
|
int
|
atoi(s,
base=...)
Return the integer represented by the string s in the given base,
which defaults to 10. |
|
|
long
|
atol(s,
base=...)
Return the long integer represented by the string s in the given
base, which defaults to 10. |
|
|
string
|
capitalize(s)
Return a copy of the string s with only its first character
capitalized. |
|
|
int
|
count(s,
sub,
start=...,
end=...)
Return the number of occurrences of substring sub in string
s[start:end]. |
|
|
|
expandtabs(...)
expandtabs(string, [tabsize]) -> string |
|
|
in
|
find(s,
sub,
start=... ,
end=...)
Return the lowest index in s where substring sub is found, such that
sub is contained within s[start,end]. |
|
|
string
|
join(list,
sep=...)
joinfields(list [,sep]) -> string |
|
|
string
|
joinfields(list,
sep=...)
joinfields(list [,sep]) -> string |
|
|
string
|
lower(s)
Return a copy of the string s converted to lowercase. |
|
|
string
|
lstrip(s)
Return a copy of the string s with leading whitespace removed. |
|
|
string
|
maketrans(frm,
to)
Return a translation table (a string of 256 bytes long) suitable for
use in string.translate. |
|
|
|
replace(...)
replace (str, old, new[, maxsplit]) -> string |
|
|
int
|
rfind(s,
sub,
start=... ,
end=...)
Return the highest index in s where substring sub is found, such that
sub is contained within s[start,end]. |
|
|
string
|
rstrip(s)
Return a copy of the string s with trailing whitespace removed. |
|
|
list of strings
|
split(s,
sep=... ,
maxsplit=...)
splitfields(s [,sep [,maxsplit]]) -> list of strings |
|
|
list of strings
|
splitfields(s,
sep=... ,
maxsplit=...)
splitfields(s [,sep [,maxsplit]]) -> list of strings |
|
|
string
|
strip(s)
Return a copy of the string s with leading and trailing whitespace
removed. |
|
|
string
|
swapcase(s)
Return a copy of the string s with upper case characters converted to
lowercase and vice versa. |
|
|
string
|
translate(s,
table,
deletechars=...)
Return a copy of the string s, where all characters occurring in the
optional argument deletechars are removed, and the remaining
characters have been mapped through the given translation table,
which must be a string of length 256. |
|
|
string
|
upper(s)
Return a copy of the string s converted to uppercase. |
|
|