Browse Source

Format

pull/3/head
Jure Šorn 5 years ago
parent
commit
aa0b613415
1 changed files with 2 additions and 2 deletions
  1. 4
      README.md

4
README.md

@ -201,11 +201,11 @@ String
<str> = <str>.strip('<chars>') # Strips all passed characters. <str> = <str>.strip('<chars>') # Strips all passed characters.
<list> = <str>.split() # Splits on any whitespace character. <list> = <str>.split() # Splits on any whitespace character.
<list> = <str>.split(sep=None, maxsplit=-1) # Splits on 'sep' at most 'maxsplit' times. <list> = <str>.split(sep=None, maxsplit=-1) # Splits on 'sep' at most 'maxsplit' times.
<str> = <str>.join(<list>)
<str> = <str>.replace(old_str, new_str)
``` ```
```python ```python
<str> = <str>.join(<list>)
<str> = <str>.replace(old_str, new_str)
<bool> = <str>.startswith(<sub_str>) # Pass tuple of strings for multiple options. <bool> = <str>.startswith(<sub_str>) # Pass tuple of strings for multiple options.
<bool> = <str>.endswith(<sub_str>) # Pass tuple of strings for multiple options. <bool> = <str>.endswith(<sub_str>) # Pass tuple of strings for multiple options.
<int> = <str>.index(<sub_str>) # Returns first index of a substring. <int> = <str>.index(<sub_str>) # Returns first index of a substring.

Loading…
Cancel
Save