|
|
我试过了,下载了Ipython后,在CMD中执行ipython >1.txt
然后输入代码print "hello world!"
exit
查看1.txt文件的内容
- Python 2.7.14 (v2.7.14:84471935ed, Sep 16 2017, 20:19:30) [MSC v.1500 32 bit (Intel)]
- Type "copyright", "credits" or "license" for more information.
- IPython 5.5.0 -- An enhanced Interactive Python.
- ? -> Introduction and overview of IPython's features.
- %quickref -> Quick reference.
- help -> Python's own help system.
- object? -> Details about 'object', use 'object??' for extra details.
- In [1]: hello world!
- In [2]:
复制代码 |
|