MAC现在都是自带Python,不需要在自行安装Python的编译环境。
1.运行Python
@wang ➜ ~ python
Python 2.7.10 (default, Jul 14 2015, 19:46:27)
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>
Python的命令行参数:
| 选项 | 描述 |
|---|---|
| -d | 在解析时显示调试信息 |
| -O | 生成优化代码 ( .pyo 文件 ) |
| -S | 启动时不引入查找Python路径的位置 |
| -V | 输出Python版本号 |
| -X | 从 1.6版本之后基于内建的异常(仅仅用于字符串)已过时。 |
| -c cmd | 执行 Python 脚本,并将运行结果作为 cmd 字符串。 |
| file | 在给定的python文件执行python脚本。 |
1万+

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



