每当我尝试将Python中的变量更改为全局变量时,在代码实际运行之前,我会收到一条错误消息。尽管出现这些错误消息,代码依然运行正常。这是我得到的:来自警告模块的全局变量警告
Warning (from warnings module):
File "N:\Documents\Computer Science\Sample CAB 2\Estimate\Task 2 Estimate.py", line 202
global loop
SyntaxWarning: name 'loop' is assigned to before global declaration
任何人都可以帮忙吗?