Python运行报错TypeError: an integer is required (got type bytes)

    最近有空学了下python,前几天还爬了点数据导入mysql中,今天运行直接报错了,后来我搜了下,也没得出结果,后面我直接新建了一个python文件,里面就一句话print('hello'),结果运行还是报错,但是在命令窗口运行正常,开发工具为ideal,请问这个是什么愿意呢,谢谢

img

img

img


这个是提示数据类型错误,你输出看看这个函数参数的数据类型

debug时也能打印出来hello,就是运行时还是会报上面那个错误