ˊㄑㄧㄢˋchīyíqiànㄓㄤˇˊˋzhǎngyízhì

吃一堑,长一智
chīyīqiàn, zhǎngyīzhìㄔ ㄧ ㄑㄧㄢˋ,ㄓㄤˇ ㄧ ㄓˋ
  1. 遭受挫折壕溝比喻挫折)​,接受教訓增長見識 吃一塹,長一智失敗終於自我改進」。

Fall into the moat and you'll be wiser next time (idiom)​; One only learns from one's mistakes.