Python 3.x 使用bcp处理python os.system错误

Python 3.x 使用bcp处理python os.system错误,python-3.x,subprocess,bcp,os.system,Python 3.x,Subprocess,Bcp,Os.system,我使用os.system更新SQL数据库中的一个表,代码正常,表更新时没有任何错误,但os.system返回1(有错误),是否缺少任何内容 我试着用subprocess运行它,但是在更新表之后它没有完成任务 我写 [path file]-f[path format]-[database]-T-o[file.log]中的BCP[database.table]

我使用os.system更新SQL数据库中的一个表,代码正常,表更新时没有任何错误,但os.system返回1(有错误),是否缺少任何内容

我试着用subprocess运行它,但是在更新表之后它没有完成任务

我写 [path file]-f[path format]-[database]-T-o[file.log]中的BCP[database.table]