IsProcessed = False (函数外定义bool型变量IsProcessed)def func(self):global IsProcessedif IsProcessed: (判断IsProcessed变量是否为True)运行报错:"IsProcessed is not defined"。 如何解决?