@@ -309,13 +309,13 @@ Python 3 strings hold unicode data. Python has a few ways to represent strings.
309
309
``s.capitalize() `` Capitalizes a string
310
310
``s.casefold() `` Lowercase in a unicode compliant manner
311
311
``s.center(w, [char]) `` Center a string in ``w `` spaces with ``char `` (default ``" " ``)
312
- ``s.count(sub, [start, [end]]) `` Count ``sub `` in ``s `` between start and end
312
+ ``s.count(sub, [start, [end]]) `` Count ``sub `` in ``s `` between `` start `` and `` end ``
313
313
``s.encode(encoding, errors= 'strict') `` Encode a string into bytes
314
314
``s.endswith(sub) `` Check for a suffix
315
315
``s.expandtabs( tabsize=8) `` Replaces tabs with spaces
316
316
``s.find(sub, [start, [end]]) `` Find substring or return ``-1 ``
317
317
``s.format(*args, **kw) `` Format string
318
- ``s.format_map( mapping) `` Format strings with a mapping
318
+ ``s.format_map( mapping) `` Format strings with a mapping
319
319
``s.index(sub, [start, [end]]) `` Find substring or raise ``ValueError ``
320
320
``s.isalnum() `` Boolean if alphanumeric
321
321
``s.isalpha() `` Boolean if alphabetic
@@ -329,7 +329,7 @@ Python 3 strings hold unicode data. Python has a few ways to represent strings.
329
329
``s.istitle() `` Boolean if titlecased
330
330
``s.isupper() `` Boolean if uppercased
331
331
``s.join(iterable) `` Return a string inserted between sequence
332
- ``s.ljust(w, [char]) `` Left justify in w spaces with ``char `` (default ``' ' ``)
332
+ ``s.ljust(w, [char]) `` Left justify in `` w `` spaces with ``char `` (default ``' ' ``)
333
333
``s.lower() `` Lowercase
334
334
``s.lstrip([chars]) `` Left strip ``chars `` (default spacing).
335
335
``s.partition(sub) `` Split string at first occurrence of substring, return ``(before, sub, after) ``
@@ -338,11 +338,11 @@ Python 3 strings hold unicode data. Python has a few ways to represent strings.
338
338
``s.rindex(sub, [start, [end]]) `` Find rightmost substring or raise ``ValueError ``
339
339
``s.rjust(w, [char) `` Right justify in w spaces with char (default ``" " ``)
340
340
``s.rpartition(sub) `` Rightmost partition
341
- ``s.rsplit([sep, [maxsplit=-1]) `` Rightmost split by sep (defaults to whitespace)
341
+ ``s.rsplit([sep, [maxsplit=-1]) `` Rightmost split by `` sep `` (defaults to whitespace)
342
342
``s.rstrip([chars]) `` Right strip
343
343
``s.split([sep, [maxsplit=-1]]) `` Split a string into sequence around substring
344
- ``s.splitlines( keepends=False) `` Break string at line boundaries
345
- ``s.startswith( prefix, [start, [end]]) `` Check for prefix
344
+ ``s.splitlines( keepends=False) `` Break string at line boundaries
345
+ ``s.startswith( prefix, [start, [end]]) `` Check for prefix
346
346
``s.strip([chars]) `` Remove leading and trailing whitespace (default) or ``chars ``
347
347
``s.swapcase() `` Swap casing of string
348
348
``s.title() `` Titlecase string
0 commit comments