1 | 2 | 3  Next
All Samples(10417)  |  Call(9831)  |  Derive(0)  |  Import(586)
join(list [,sep]) -> string

Return a string composed of the words in list, with
intervening occurrences of sep.  The default separator is a
single space.

(joinfields and join are synonymous)

All Samples(9509)  |  Call(9081)  |  Derive(0)  |  Import(428)
split(s [,sep [,maxsplit]]) -> list of strings

Return a list of the words in the string s, using sep as the
delimiter string.  If maxsplit is given, splits at no more than
maxsplit places (resulting in at most maxsplit+1 words).  If sep
is not specified or is None, any whitespace string is a separator.

(split and splitfields are synonymous)

All Samples(5652)  |  Call(5256)  |  Derive(0)  |  Import(396)
strip(s [,chars]) -> string

Return a copy of the string s with leading and trailing
whitespace removed.
If chars is given and not None, remove characters in chars instead.
If chars is unicode, S will be converted to unicode before stripping.

All Samples(3923)  |  Call(3801)  |  Derive(0)  |  Import(122)
find(s, sub [,start [,end]]) -> in

Return the lowest index in s where substring sub is found,
such that sub is contained within s[start,end].  Optional
arguments start and end are interpreted as in slice notation.

Return -1 on failure.

All Samples(3712)  |  Call(3531)  |  Derive(0)  |  Import(181)
lower(s) -> string

Return a copy of the string s converted to lowercase.

All Samples(3711)  |  Call(3609)  |  Derive(0)  |  Import(102)
replace (str, old, new[, maxsplit]) -> string

Return a copy of string str with all occurrences of substring
old replaced by new. If the optional argument maxsplit is
given, only the first maxsplit occurrences are replaced.

All Samples(1634)  |  Call(1146)  |  Derive(171)  |  Import(317)
A string class for supporting $-substitutions.

All Samples(2689)  |  Call(2592)  |  Derive(0)  |  Import(97)
atoi(s [,base]) -> int

Return the integer represented by the string s in the given
base, which defaults to 10.  The string s must consist of one
or more digits, possibly preceded by a sign.  If base is 0, it
is chosen from the leading characters of s, 0 for octal, 0x or
0X for hexadecimal.  If base is 16, a preceding 0x or 0X is
accepted.

All Samples(1537)  |  Call(1422)  |  Derive(0)  |  Import(115)
upper(s) -> string

Return a copy of the string s converted to uppercase.

All Samples(1251)  |  Call(1150)  |  Derive(0)  |  Import(101)
maketrans(frm, to) -> string

Return a translation table (a string of 256 bytes long)
suitable for use in string.translate.  The strings frm and to
must be of the same length.

All Samples(848)  |  Call(813)  |  Derive(0)  |  Import(35)
atof(s) -> float

Return the floating point number represented by the string s.

All Samples(825)  |  Call(812)  |  Derive(0)  |  Import(13)
join(list [,sep]) -> string

Return a string composed of the words in list, with
intervening occurrences of sep.  The default separator is a
single space.

(joinfields and join are synonymous)

All Samples(632)  |  Call(595)  |  Derive(0)  |  Import(37)
rfind(s, sub [,start [,end]]) -> int

Return the highest index in s where substring sub is found,
such that sub is contained within s[start,end].  Optional
arguments start and end are interpreted as in slice notation.

Return -1 on failure.

All Samples(578)  |  Call(572)  |  Derive(0)  |  Import(6)
zfill(x, width) -> string

Pad a numeric string x with zeros on the left, to fill a field
of the specified width.  The string x is never truncated.

All Samples(465)  |  Call(456)  |  Derive(0)  |  Import(9)
count(s, sub[, start[,end]]) -> int

Return the number of occurrences of substring sub in string
s[start:end].  Optional arguments start and end are
interpreted as in slice notation.

All Samples(420)  |  Call(360)  |  Derive(0)  |  Import(60)
rstrip(s [,chars]) -> string

Return a copy of the string s with trailing whitespace removed.
If chars is given and not None, remove characters in chars instead.

All Samples(322)  |  Call(0)  |  Derive(0)  |  Import(322)
str(object) -> string

Return a nice string representation of the object.
If the argument is a string, the return value is the same object.

All Samples(319)  |  Call(285)  |  Derive(0)  |  Import(34)
split(s [,sep [,maxsplit]]) -> list of strings

Return a list of the words in the string s, using sep as the
delimiter string.  If maxsplit is given, splits at no more than
maxsplit places (resulting in at most maxsplit+1 words).  If sep
is not specified or is None, any whitespace string is a separator.

(split and splitfields are synonymous)

All Samples(303)  |  Call(298)  |  Derive(0)  |  Import(5)
ljust(s, width[, fillchar]) -> string

Return a left-justified version of s, in a field of the
specified width, padded with spaces as needed.  The string is
never truncated.  If specified the fillchar is used instead of spaces.

All Samples(292)  |  Call(272)  |  Derive(0)  |  Import(20)
lstrip(s [,chars]) -> string

Return a copy of the string s with leading whitespace removed.
If chars is given and not None, remove characters in chars instead.

  1 | 2 | 3  Next