|
|
@ -758,11 +758,24 @@ while True: |
|
|
|
break |
|
|
|
``` |
|
|
|
|
|
|
|
#### Raise exception |
|
|
|
#### Raising exception: |
|
|
|
```python |
|
|
|
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 |
|
|
|
----- |
|
|
|