CodePudding user response:
Using int method can solve your problem, int method first argument as to convert the string, the second for the use of the base, the default for decimal,Num=input ()
A=int (num, 2)
B=int (num, 8)
CodePudding user response:
Thank you to help me, I began to use CSDN, not too ripe, would you like to tell me how to knot stick? I give you post