Python-error 進程不放在 ’__main__‘函數中時引發的錯誤

 error: An attempt has been made to start a new process before the current process has finished its bootstrapping phase.    解決的辦法:上圖錯誤中已經提示, 需要將進程process.start()放在 if __name__ == '__main__':的函數內。
相關文章
相關標籤/搜索