Browse Source

Finally

pull/3/head
Jure Šorn 6 years ago
parent
commit
7cd7d7fe48
1 changed files with 14 additions and 1 deletions
  1. 15
      README.md

15
README.md

@ -758,11 +758,24 @@ while True:
break break
``` ```
#### Raise exception #### Raising exception:
```python ```python
raise IOError("input/output error") raise IOError("input/output error")
``` ```
#### Finaly:
```python
>>> try:
... raise KeyboardInterrupt
... finally:
... print('Goodbye, world!')
...
Goodbye, world!
Traceback (most recent call last):
File "<stdin>", line 2, in <module>
KeyboardInterrupt
```
Bytes Bytes
----- -----

|||||||
100:0
Loading…
Cancel
Save