os.systems

https://blog.csdn.net/qq_46487319/article/details/124365166

 cmds="git pull origin master"
 os.system(cmds)

subprocess.Popen

cmds="tar -zcf xx.tar.gz *"
subprocess.Popen(cmds, cwd="/data/demo1", shell=True)