how to call shell?

contro opinion contropinion at gmail.com
Tue Feb 12 06:12:07 CET 2013


>>> import os
>>> os.system("i=3")
0
>>> os.system("echo $i")

0
>>>
why i can't get the value of i ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20130212/4bebc34f/attachment.html>


More information about the Python-list mailing list