无论 except:、except Exception: 还是 except JSONDecodeError: 都无法捕获?
1
holajamc 2018-10-30 17:53:20 +08:00
In [1]: import json
In [2]: try: ...: json.loads('a') ...: except json.JSONDecodeError: ...: print('error') ...: error |