python进制转换输出报错
代码如下:a = 12345
b = "0xF98A"
c = '0b1100010110'
print(str(a)+"的二进制、八进制、十六进制分别为"+"\n"+bin(a)+"、"+oct(a)+"、"+hex(a))
s=(int(b,16))
print(b+"的二进制、十进制、八进制分别为"+"\n"+bin(b)+"、"+(s)+"、"+oct(b))
报错信息: print(b+"的二进制、十进制、八进制分别为"+"\n"+bin(b)+"、"+(s)+"、"+oct(b))
TypeError: 'str' object cannot be interpreted as an integer
大神求解!谢谢