x=4095
s1="ABCDEFGHIJ"
s2="abcdefghij"
ret=""
while x>0:
r=x % 10
if r % 2==1:
ret=s1[r]+ret
else:
ret=ret+s2[r]
x=x//10
print(ret)
微信扫码预览、分享更方便