Browse Source

Chr

pull/3/head
Jure Šorn 6 years ago
parent
commit
9563a9c3b7
1 changed files with 2 additions and 7 deletions
  1. 9
      README.md

9
README.md

@ -182,6 +182,8 @@ String
<bool> = <str>.endswith(<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. <bool> = <str>.isnumeric() # True if str contains only numeric characters.
<int> = <str>.index(<sub_str>) # Returns first index of substring. <int> = <str>.index(<sub_str>) # Returns first index of substring.
<ch> = chr(<int>) # Converts int to unicode char.
<int> = ord(<ch>) # Converts unicode char to int.
``` ```
### Print ### Print
@ -189,7 +191,6 @@ String
print(<el> [, <el>, end='', sep='', file=<file>]) # Use 'file=sys.stderr' for err. print(<el> [, <el>, end='', sep='', file=<file>]) # Use 'file=sys.stderr' for err.
``` ```
### Regex ### Regex
```python ```python
import re import re
@ -1090,12 +1091,6 @@ def get_border(screen):
return Coords(width - 1, height - 1) return Coords(width - 1, height - 1)
``` ```
#### Gets char from int:
```python
<ch> = chr(<int>)
<int> = ord(<ch>)
```
Profile Profile
------- -------
#### Basic: #### Basic:

Loading…
Cancel
Save