try: x=int(input()) y=int(input()) m=divmod(x,y) print(m) except: print('error') else: print('right') finally: print('OK')
输入10输出errorOK
输入05输出(0, 0)rightOK
输入51输出(5, 0)rightOK
输入50输出0rightOK