python 全re
查看原帖
python 全re
1106162
Sos_Dou楼主2024/5/16 17:27
str="0123456789ABCDEF"
def f(x,m):
    if x//m:
        f(x//m,m)
    print(str[x%m],end='')

x=int(input())
m=int(input())
f(x,m)
2024/5/16 17:27
加载中...