偶一为之

ǒu yī wéi zhī

to do sth once in a while (idiom)

to do sth more as an exception than the rule

ǒu

accidental

one

wéi

variant of 為|为[wei2]

zhī

(possessive particle, literary equivalent of 的[de5])