linux 中用python实现终端命令行命令

在python代码中实现和在终端中输入的命令行一样的效果,以命令(audacious -p &)为例,该代码实现用audacious在后台播放音乐的功能,当然前提是安装了audacious。

代码:

import os

os.system('audacious -p &')

原文地址:https://www.cnblogs.com/bovenson/p/3886997.html