Skip to content

python 使用 shell 命令

Shuang0420 edited this page Jun 22, 2016 · 1 revision
# 执行 shell 语句
command = 'ls'
os.system(command)

# 当前目录
path = os.getcwd()

# 跳转目录
os.chdir(os.getcwd() + '/' + 'qqseg_new')

参考链接

[[TOC]]

Clone this wiki locally