digitalbrain79 / person-reid

Tensorflow implementation of "An Improved Deep Learning Architecture for Person Re-Identification"
118 stars 61 forks source link

TypeError: replace() takes at least 3 arguments (2 given) part 2 #17

Open swimmer2020 opened 4 years ago

swimmer2020 commented 4 years ago

this is my code:

replacing the old high score with their new high score

filedata = database.read() database.close() newdata=filedata.replace(userStuff[0]+" "+userStuff[1]+" "+userStuff[2]+userStuff[0]+" "+userStuff[1]+" "+str(player1score)) database=open("usernames","w") database.write(newdata)

It comes up with the error: TypeError: replace() takes at least 3 arguments (2 given)

Why?