Python语言os模块学习笔记

operating coding
Get wok directory os.getcwd()
Make directory os.mkdir('mydir')
Change directory os.chdir('mypath')
Start window word office os.system('winword')
Start vim gui os.system('gvim')
Remove a file os.remove('thisfile')*

*be careful,after it working, you can't find thisfile .

你可能感兴趣的:(Python语言os模块学习笔记)