您的位置:首页 > 编程语言 > Python开发

【Python】Learn Python the hard way, ex0 学习使用Terminal

2015-10-06 20:48 615 查看
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模式感觉好些。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: