CodePudding user response:
def ItoN (d, t) :
R='
While d & gt; T:
D, y=divmod (d, t)
R=CRH (y - 10 + 65) if y & gt;=10 else STR (y) + r
Return CRH (d - 10 + 65) + r if d & gt;=10 else STR (d) + r
I, n=map (int, input (" & gt;> & gt;" ). The split ())
Print (ItoN (I, n))
CodePudding user response:
Is to use a dictionary to write good mapping rules