Open humingcheng opened 8 years ago
当在模块内执行时,name == 'main' 当在模块外执行时:name == 'module' 因此该语句用于判断本模块是自己在执行还是被导入执行
当在模块内执行时,name == 'main' 当在模块外执行时:name == 'module' 因此该语句用于判断本模块是自己在执行还是被导入执行