Python os.system()调用.sh脚本
参考:
python调用shell脚本的两种方法| Jeff的妙想奇境
已解决——求教python如何调用.sh文件- 查看主题• Ubuntu中文论坛
CODE
#!/usr/bin/env python3
import os
def main():
os.system("sh button_communicate.sh") # 调用button_communicate.sh
if __name__ == '__main__':
main()
2017/3/2
To improve is to change, to be perfect is to change often.