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 .
网友评论