mirror of
https://github.com/SantaSpeen/CLI-in-Python.git
synced 2025-07-01 15:25:31 +00:00
Update README
This commit is contained in:
parent
e63bd01cbf
commit
575879459d
@ -52,7 +52,7 @@ cli.write("cli.write")
|
||||
# ]: cli.write
|
||||
```
|
||||
|
||||
* With logging output usage
|
||||
* With `logging` output usage
|
||||
|
||||
```python
|
||||
from console import Console
|
||||
@ -75,7 +75,7 @@ logging.info("Info log")
|
||||
# ]: 2022-02-20 23:22:49,731 - root - INFO - Info log
|
||||
```
|
||||
|
||||
* with `print()` and `console.log` output usage
|
||||
* With `print()` and `console.log` output usage
|
||||
|
||||
```python
|
||||
from console import Console
|
||||
|
@ -50,7 +50,7 @@ cli.write("cli.write")
|
||||
# ]: cli.write
|
||||
```
|
||||
|
||||
* Использование вывода с logging
|
||||
* Использование вывода с `logging`
|
||||
|
||||
```python
|
||||
from console import Console
|
||||
@ -73,7 +73,7 @@ logging.info("Info log")
|
||||
# ]: 2022-02-20 23:22:49,731 - root - INFO - Info log
|
||||
```
|
||||
|
||||
* Использование вывода с`print()` и `console.log`
|
||||
* Использование вывода с `print()` и `console.log`
|
||||
|
||||
```python
|
||||
from console import Console
|
||||
@ -101,8 +101,8 @@ console << "<< log"
|
||||
# ]: << log
|
||||
```
|
||||
|
||||
Если вы используете IDE, можно обновить `builtins.pyi` используя `scr/builtins_fix.pyi`. <br/>
|
||||
Скопируйте всё из `builtins_fix.pyi` и вставте в `builtins.pyi` на `131` линию, до `class type(object)`.
|
||||
Если вы используете IDE, можно обновить `builtins.pyi`, что бы она не ругалась на отсутствие `console.*` используя `scr/builtins_fix.pyi`. <br/>
|
||||
Скопируйте всё из `builtins_fix.pyi` и вставте в `builtins.pyi` на `131` линию, перед `class type(object)`.
|
||||
|
||||
## Ссылки
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user