|
@ -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. |
|
|