Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我曾经通过打开命令提示符然后键入来执行 MLOAD 过程MLOAD < MLOAD_FILE.txt。我如何使用 Python 做到这一点?
MLOAD < MLOAD_FILE.txt
假设MLOAD_FILE.txt在目录下C:\\Users\\MLOAD_FILES。
MLOAD_FILE.txt
C:\\Users\\MLOAD_FILES
谢谢!
这对我有用。
import os os.system("MLOAD < 'C:\\Users\\MLOAD_FILES.txt'")