call from pthon to shell

Bqsj Sjbq bqsjhaha at yahoo.com
Tue Feb 12 00:38:20 EST 2013


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

0

why i can not get the value of i?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20130211/afb4acf2/attachment.html>


More information about the Python-list mailing list