【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模式感觉好些。
-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模式感觉好些。
相关文章推荐
- python收集
- Python 面向对象
- Python FunnyPoint--Programing
- 用Python做科学计算
- Ubantu环境下利用Python3+PyQt5+Eric6进行GUI编程
- python 链接MS SQL
- python小细节
- Python笔记:logging模块使用
- 关于Python多线程的理解
- python内建函数——类型转化函数
- python内置函数
- [Python进阶-7]文件和目录的IO操作,以及json序列化和反序列化
- Python爬虫起步:一步步解决中文乱码显示
- python随机产生4个互不相等的随机数
- 八大排序算法的 Python 实现
- python字典结构get()方法的陷阱
- python学习笔记1---关键元素1
- python学习总结归纳目录
- python多行注释
- python基础8之爬虫