我爱编程

Python语言os模块学习笔记

2018-05-21  本文已影响0人  红蜻蜓q
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 .

上一篇下一篇

猜你喜欢

热点阅读