python 打包后报错:
'NoneType' object has no attribute 'write'
解决:
if sys.stdout is None:
sys.stdout = open(os.devnull, "w")
if sys.stderr is None:
sys.stderr = open(os.devnull, "w")
python 打包后报错:
'NoneType' object has no attribute 'write'
解决:
if sys.stdout is None:
sys.stdout = open(os.devnull, "w")
if sys.stderr is None:
sys.stderr = open(os.devnull, "w")
python 打包后报错:
'NoneType' object has no attribute 'write'
解决:
if sys.stdout is None:
sys.stdout = open(os.devnull, "w")
if sys.stderr is None:
sys.stderr = open(os.devnull, "w")