上传文件至「week12」

This commit is contained in:
2026-06-01 02:02:53 +00:00
parent 31078ddcf7
commit 185980b30f
5 changed files with 104 additions and 0 deletions

9
week12/continueanyway.py Normal file
View File

@@ -0,0 +1,9 @@
from sys import stderr
def ca(fn):
def call(*args,**kwargs):
try:
fn(*args,**kwargs)
except Exception as e:
print(type(e).__name__,":",e,file=stderr)
return call