SyntaxError when assigning to global var

前端 未结 5 1115
星月不相逢
星月不相逢 2021-01-26 11:36

I am trying out Python for a new project, and in that state, need some global variable. To test without changing the hardcoded value, I\'ve tried to make a function that reassig

5条回答
  •  南笙
    南笙 (楼主)
    2021-01-26 12:04

    global and assignment are both statements. You can't mix them on the same line.

提交回复
热议问题