笔记:IPython基础

    技术2022-05-19  19

    IPython基础

     

    Python的优点

    简单易学;能完成负责的任务;代码可读性高,易于维护;支持OOP等

     

    IPython 

    Python提供了类似shell的交互式解释器

    IPython集成了交互式Python,具有卓越的Python Shell,性能远远由于PYthon Shell

    在fedora中可以直接通过yum安装 IPython

        yum install ipython

    FC14中为 IPython 0.10.1 -- An enhanced Interactive Python.

     

    [ty@tiany ~]$ ipythonPython 2.7 (r27:82500, Sep 16 2010, 18:03:06) Type "copyright", "credits" or "license" for more information.IPython 0.10.1 -- An enhanced Interactive Python.? -> Introduction and overview of IPython's features.%quickref -> Quick reference.help -> Python's own help system.object? -> Details about 'object'. ?object also works, ?? prints more.

     

    In [1]:

     

    在IPython中的操作类似于Python

    并且可以通过Tab提供自动完成功能

     

    IPython的Magic函数

    IPython提供了功能强大、内建的Magic函数,定义为: IPython中将任何第一个字母为%的行视为Magic函数的特殊调用,可以控制IPython,为其增加许多系统功能。

    例如

    转载请注明原文地址: https://ibbs.8miu.com/read-2207484.html

    最新回复(0)