Desenrascanço
suːɪtuː dʒɪwɒn jɪŋwɒn baɪənfɔː suːɪtuːdʒɪwɒn jɪfɔːŋbɪɐfɔːn tʊ ɐdapt tə sɜːkəmstansɪz ts.ɑu2 bʌθɹiː dʒɪəfɔː kwɒfɔː s.i.5 ts.ɑu2 bʌθɹiːdʒɪəfɔː kwɒfɔːʃɪwɒn tə faɪnd ei5 ɹɪmiːdɪəl mɛʒə
In Chinese 随机应变 (suíjī yìngbiàn) - to adapt to circumstances; 找补救措施 (zhǎo bǔjiù cuòshī) - to find a remedial measure.
The ability to improvise, find a solution, or get out of a difficult situation with resourcefulness and ingenuity, often in a quick and clever way.
Example
"Ele sempre dá um jeito de se desenrascar."