ㄌㄧㄣˊˊlínshíㄅㄠˋbàoㄈㄛˊㄐㄧㄠˇfójiǎo

临时抱佛脚
  1. 平時燒香禮佛危難時刻祈求保佑自己比喻平時沒有準備臨頭急忙應付 平時努力考試臨時抱佛腳不會?」。

lit. to clasp the Buddha's feet when danger arises (idiom)​; fig. to profess devotion only when in trouble, doing things at the last minute, making a hasty last-minute effort