import os # sql脚本结尾加';'!!! os.system('sqlplus.exe scott/s123@127.0.0.1:1521/ORCL @D:/PycharmProjects/test.sql') os.system('python.exe D:PycharmProjects est.py')
https://blog.csdn.net/marising/article/details/6551692