通權達變

Idiom

 * 1) to adapt to circumstances; to be adaptable to changing circumstances to act as the occasion requires