This commit is contained in:
2026-11-02 17:00:28 +08:00
parent 5d0f629439
commit 9ed39b51f7
43 changed files with 7163 additions and 151 deletions

View File

@@ -0,0 +1,23 @@
# try except 简写
import guan
@guan.try_decorator
def test1(a, b):
print(a)
bug_code
print(b)
return 'return_message1'
result1 = test1(10, b=20)
print(result1)
print()
def test2(a, b):
print(a)
bug_code
print(b)
return 'return_message2'
result2 = guan.try_except(test2, 100, b=200)
print(result2)