Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #38734
| Date | 2013-02-11 21:38 -0800 |
|---|---|
| From | Bqsj Sjbq <bqsjhaha@yahoo.com> |
| Subject | call from pthon to shell |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1690.1360655922.2939.python-list@python.org> (permalink) |
[Multipart message — attachments visible in raw view] - view raw
>>> import os
>>> os.system("i=3")
0
>>> os.system("echo $i")
0
why i can not get the value of i?
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
call from pthon to shell Bqsj Sjbq <bqsjhaha@yahoo.com> - 2013-02-11 21:38 -0800
csiph-web