临事能妥善应变。《敦煌变文・韩擒虎话本》:“大凡男子,随机而变,不如降他。”亦作“随机应变”。
英语 be equal to the occasion(cut one's coat to fit one's cloth)