We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 326c57d commit fe12390Copy full SHA for fe12390
Doc/tutorial/stdlib.rst
@@ -14,11 +14,11 @@ The :mod:`os` module provides dozens of functions for interacting with the
14
operating system::
15
16
>>> import os
17
- >>> os.system('time 0:02')
18
- 0
19
>>> os.getcwd() # Return the current working directory
20
'C:\\Python31'
21
- >>> os.chdir('/server/accesslogs')
+ >>> os.chdir('/server/accesslogs') # Change current working directory
+ >>> os.system('mkdir today') # Run the command mkdir in the system shell
+ 0
22
23
Be sure to use the ``import os`` style instead of ``from os import *``. This
24
will keep :func:`os.open` from shadowing the built-in :func:`open` function which
0 commit comments