Função da base de mudança de python

>>>import numpy as np
>>>np.base_repr(10, base=3)
'101'
Kind Kingfisher