Browse Source

Format

pull/3/head
Jure Šorn 5 years ago
parent
commit
47e22fecbf
1 changed files with 5 additions and 10 deletions
  1. 15
      README.md

15
README.md

@ -201,10 +201,11 @@ String
<list> = <str>.split(sep=None, maxsplit=-1) # Splits on whitespaces by default.
<str> = <str>.strip('<chars>')
<str> = <str>.join(<list>)
<bool> = <str>.startswith(<str>) # Pass tuple of strings for multiple options.
<bool> = <str>.endswith(<str>) # Pass tuple of strings for multiple options.
<bool> = <str>.isnumeric() # True if str contains only numeric characters.
<int> = <str>.index(<sub_str>) # Returns first index of substring.
<bool> = <str>.startswith(<str>) # Pass tuple of strings for multiple options.
<bool> = <str>.endswith(<str>) # Pass tuple of strings for multiple options.
<bool> = <str>.isnumeric() # True if str contains only numeric characters.
<int> = <str>.index(<sub_str>) # Returns first index of substring.
<list> = textwrap.wrap(text, width) # Nicely breakes text into lines.
```
### Char
@ -307,12 +308,6 @@ import re
* `'x'` - Hex
* `'X'` - HEX
### Text Wrap
```python
import textwrap
<list> = textwrap.wrap(text, width)
```
Numbers
-------

Loading…
Cancel
Save