=+ Python operator is syntactically correct
问题 I accidentally wrote: total_acc =+ accuracy instead of: total_acc += accuracy I searched the net and could not find anything. So what happened, why does Python think I mean what I am typing? Computers trust us too much. :) 回答1: This is the same as if you were to do like total_acc = -accuracy , except positive instead of negative. It basically is the same as total_acc = accuracy though, as adding a + before a value does not change it. This is called an unary operator as there is only one