Python 语言与 Perl,C 和 Java 等语言有许多相似之处。但是,也存在一些差异。
Python 基础语法 语法
交互式编程不需要创建脚本文件,是通过 Python 解释器的交互模式进来编写代码。
Python 基础语法 示例
$ python Python 2.7.6 (default, Sep 9 2014, 15:04:36) [GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>>