import os

try:
    1 / 0
except ZeroDivisionError as reason:
    print("error[{0}]".format(str(reason)))
finally:
    print("finally")

try:
    raise TypeError("eee")
except (OSError, TypeError) as reason:
    print("error:[%s]" % (str(reason)))

try:
    os.chdir("..")
    with open("{0}/one-file/test_file.txt".format(os.getcwd())) as f:
        for each in f:
            print(each)
        else:
            print("循环结束")
except OSError as reason:
    print("error{}".format(str(reason)))
else:
    print("无异常")

0b31209ab90278800a0c3a486e162479a41238ea
<mask token>

<mask token>
try:
    1 / 0
except ZeroDivisionError as reason:
    print('error[{0}]'.format(str(reason)))
finally:
    print('finally')
try:
    raise TypeError('eee')
except (OSError, TypeError) as reason:
    print('error:[%s]' % str(reason))
try:
    os.chdir('..')
    with open('{0}/one-file/test_file.txt'.format(os.getcwd())) as f:
        for each in f:
            print(each)
        else:
            print('循环结束')
except OSError as reason:
    print('error{}'.format(str(reason)))
else:
    print('无异常')

import os
try:
    1 / 0
except ZeroDivisionError as reason:
    print('error[{0}]'.format(str(reason)))
finally:
    print('finally')
try:
    raise TypeError('eee')
except (OSError, TypeError) as reason:
    print('error:[%s]' % str(reason))
try:
    os.chdir('..')
    with open('{0}/one-file/test_file.txt'.format(os.getcwd())) as f:
        for each in f:
            print(each)
        else:
            print('循环结束')
except OSError as reason:
    print('error{}'.format(str(reason)))
else:
    print('无异常')

import os

try:
    1 / 0
except ZeroDivisionError as reason:
    print("error[{0}]".format(str(reason)))
finally:
    print("finally")

try:
    raise TypeError("eee")
except (OSError, TypeError) as reason:
    print("error:[%s]" % (str(reason)))

try:
    os.chdir("..")
    with open("{0}/one-file/test_file.txt".format(os.getcwd())) as f:
        for each in f:
            print(each)
        else:
            print("循环结束")
except OSError as reason:
    print("error{}".format(str(reason)))
else:
    print("无异常")
