str1 = '12"123456"'
new_str = str1.split("\"")[1]
print(str1)

输出结果:123456