Mac OS:
-bash: /Users/myRMBP/.bash_profile: line 5: `export path=${PATH}: <1> : <2>'
bogon:~ myRMBP$ python
Python 2.7.10 (v2.7.10:15c95b7d81dc, May 23 2015, 09:33:12)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> ^D
bogon:~ myRMBP$ python
Python 2.7.10 (v2.7.10:15c95b7d81dc, May 23 2015, 09:33:12)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> i=['1','2']
>>> j=['3']
>>> i+j
['1', '2', '3']
>>> ^D
bogon:~ myRMBP$ mkdir ghx
bogon:~ myRMBP$ mkdir thismyfolder
bogon:~ myRMBP$ mkdir thismyfolder
bogon:~ myRMBP$ cd thismyfolder
bogon:thismyfolder myRMBP$ ls
bogon:thismyfolder myRMBP$ ls
untitled 2.txt
bogon:thismyfolder myRMBP$
心得:
在Terminal下直接使用Python还是很爽的,比IDLE的interactive模式感觉好些。
本文记录了在MacOS终端直接使用Python进行交互式编程的体验,对比IDLE模式,发现终端方式更加便捷高效。文中还展示了如何创建文件夹及查看文件夹内容等基本操作。

被折叠的 条评论
为什么被折叠?



