def input_number():
    x = 10
    try:
        y = int(input('請輸入數字:'))
        z = x / y
    except ZeroDivisionError as e:
        print('分母不可 = 0, 請重新輸入~', e)
        input_number()
    except ValueError as e:
        print('輸入資料錯誤, 請重新輸入~', e)
        input_number()
    except Exception as e:
        print("發生了一個我料想不到的錯誤", e)
    else:
        print(z)

if __name__ == '__main__':
    input_number()