Python error TypeError:can ‘t convert complex to float

Python error TypeError:can ’t convert complex to float

Error: rep [I, J] = Data_ Value [- 1]
I searched the Internet for a long time, but I couldn’t solve it. Finally, the students took a look for help. It turned out that when I read the TIF file repeatedly, I gave it “\” or path_ i = tif_ Change path + “\” + I to path_ i = tif_ Path + I, you can run normally
for fear of making the same mistake later, just record it

Read More: