25개 이상의 토픽을 선택하실 수 없습니다.
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
|
123456789101112131415161718 |
- class Personnage:
- def tente_un_truc_risqué(self):
- 1 / 0
-
- def quitte_la_scène(self):
- print("je m'en vais")
-
-
- def entre_en_scène():
- return Personnage()
-
-
- personnage = entre_en_scène()
- try:
- personnage.tente_un_truc_risqué()
- except FileNotFoundError:
- print("raté")
- personnage.quitte_la_scène()
|