写成 datadir = r"pythonProject1\many datas"
不是引号和斜杠问题,你把pythonProject1\去掉,只用’many datas‘
实在不行你直接选择文件右键赋值绝对路径