猫史档案馆


交互式编程

用户:黄岩黄岩查看:0 回复:0 评论:0 创建时间:2020-04-20T16:40:11


交互式编程不需要创建脚本文件,是通过 Python 解释器的交互模式进来编写代码。

linux上你只需要在命令行中输入 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.
>>>


回复

上一页1 页 / 共 0下一页