0
How do you define a field (class variable) in python without assigning it to something?
So, I need to define a Thread variable in my code, assign it after __name__ == '__main__': and then use it in other functions in the code?
3 Respuestas
+ 1
assign it None
e.g this.threadVar = None
+ 1
Oh, I made a mistake and typed 'null' and it wouldn't compile, logically 😂
0
Haha I make that mistake sometimes too