君子豹変
1
the wise readily adapt themselves to changed circumstances;the wise are quick to acknowledge their mistakes and correct them
2
the wise make no scruple in suddenly changing their demeanor
in colloquial usage, ironically or as an excuse