导致SyntaxError :invalid syntax错误的原因有:
1)忘记在 if , elif , else , for , while , class ,def 声明末尾添加 :
2)使用 = 而不是 ==(= 是赋值操作符而 == 是等于比较操作)