读入2个正整数A和B,1<=A<=9, 1<=B<=10,产生数字AA...A,一共B个A a,b=input().split(',') a=a.strip() b=b.strip() b=int(b) c=a for i in range(b-1): c+=a print(c)
输入一个整数和进制,转换成十进制输出
a,b=input().split(",") b = eval(b) c=int(a,b)#int(string,number) print(c)