Sunday, March 4, 2012

"look close." "in python!"

(boxy-methoxy) /root/audio/toskanegger# python
Python 2.6.2 (r262:71600, Jun 9 2009, 14:36:10)
[GCC 4.3.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> os.system("echo hello world")
Traceback (most recent call last):
File "", line 1, in
NameError: name 'os' is not defined
>>> print os.__doc__
Traceback (most recent call last):
File "", line 1, in
NameError: name 'os' is not defined
>>> dir(os)
Traceback (most recent call last):
File "", line 1, in
NameError: name 'os' is not defined
>>> from os import system
>>> os.system("echo hello world")
Traceback (most recent call last):
File "", line 1, in
NameError: name 'os' is not defined
>>> from os import system
>>> from os import system

No comments:

Post a Comment