1、python数制转换
``` 方法一: a,b=eval(input()) print(int(str(a),b))方法二:
a,b=input().split(',')
print(int(str(a),int(b)))
标签:python,编程,基础,int,str,print,input
From: https://www.cnblogs.com/N-lim/p/16849991.html
1、python数制转换
``` 方法一: a,b=eval(input()) print(int(str(a),b))方法二:
a,b=input().split(',')
print(int(str(a),int(b)))
标签:python,编程,基础,int,str,print,input
From: https://www.cnblogs.com/N-lim/p/16849991.html