以下のプログラムはlistとだけ出力される
test1.py
try:
try:
a = [1,2,3]
print(a[100])
except IndexError:
print('list')
except Exception:
print('all')
More than 3 years have passed since last update.
以下のプログラムはlistとだけ出力される
try:
try:
a = [1,2,3]
print(a[100])
except IndexError:
print('list')
except Exception:
print('all')
Register as a new user and use Qiita more conveniently