From c38c6e675ec1dcd4c39e97ee2f5ed43811cdea4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=9B=BC=E5=B0=8F=E8=BE=89=E4=B8=B6?= <760198141@qq.com> Date: Sun, 17 Oct 2021 22:01:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E6=96=B0=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Excption Handling/Problem 6/B.py | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 Excption Handling/Problem 6/B.py diff --git a/Excption Handling/Problem 6/B.py b/Excption Handling/Problem 6/B.py new file mode 100644 index 0000000..6b838aa --- /dev/null +++ b/Excption Handling/Problem 6/B.py @@ -0,0 +1,6 @@ +example = {'python': 'simple', 'c': 'fast'} +try: + print(example['java']) +except KeyError as e: + print(example) + raise RuntimeError \ No newline at end of file -- GitLab