testImgPath = r"C:\Users\Minty-PC\Desktop\data.tif"
testImgPath = testImgPath.replace('\\', '/')
outImgPath = r"C:\Users\Minty-PC\Desktop\dataaaa.tif"
outImgPath = outImgPath.replace('\\', "/")
mark一下,参考自博客
testImgPath = r"C:\Users\Minty-PC\Desktop\data.tif"
testImgPath = testImgPath.replace('\\', '/')
outImgPath = r"C:\Users\Minty-PC\Desktop\dataaaa.tif"
outImgPath = outImgPath.replace('\\', "/")
mark一下,参考自博客