在python嵌入庆典 [英] Embed bash in python

查看:196
本文介绍了在python嵌入庆典的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我书面方式Python脚本,我的时间不多了。我需要做一些事情,我知道pretty以及在bash,所以我只是想知道我怎么可以嵌入一些庆典线到一个Python脚本。

I am writting a Python script and I am running out of time. I need to do some things that I know pretty well in bash, so I just wonder how can I embed some bash lines into a Python script.

感谢

推荐答案

如果你想调用系统命令,使用模块。

If you want to call system commands, use the subprocess module.

这篇关于在python嵌入庆典的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆