NameError: name 'scr1' is not defined
时间: 2023-09-09 08:13:39 浏览: 48
It seems that there is an error in your code. The error message "NameError: name 'scr1' is not defined" means that you are trying to use a variable or function called "scr1" that has not been defined in your code.
To fix this error, you need to define the variable "scr1" before using it in your code. You can define it by assigning a value to it using the equals sign (=), like this:
```
scr1 = 0
```
Alternatively, if you are trying to use a function called "scr1", you need to define the function before using it in your code. You can define a function using the "def" keyword, like this:
```
def scr1():
# function code goes here
```
Make sure to define the variable or function before using it in your code to avoid the "NameError" message.