python global None object hint

前端 未结 0 1689
我寻月下人不归
我寻月下人不归 2021-01-23 05:46

I have this:

my_object = None;


def main():
  global my_object;
  my_object = MyObject();
  # do stuff with my_object

if __name__ == "__main__":
  mai         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题