From bd0bf62b18767ec59486e70fa33eb38d87ef424b Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Sat, 9 Mar 2024 09:41:17 +0800 Subject: [PATCH] save project --- diy1.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 diy1.py diff --git a/diy1.py b/diy1.py new file mode 100644 index 0000000..b0dfb1b --- /dev/null +++ b/diy1.py @@ -0,0 +1,8 @@ +try: + age = int(input("你今年几岁了?")) +except: + print('要输入整数啊') +else: + if age < 18: + print('不可以喝酒哟') +print('程序结束了~~') \ No newline at end of file -- libgit2 0.25.0