zoukankan      html  css  js  c++  java
  • python 开发工具简介

     

    一、python 开发工具简介

    1、IDLE

    IDLE是开发python程序的基本IDE(集成开发环境),具备基本的IDE的功能,是非商业Python开发的不错的选择。当安装好python以后,IDLE就自动安装好了,不需要另外去找。同时,使用Eclipse这个强大的框架时IDLE也可以非常方便的调试Python程序。基本功能:语法加亮;段落缩进;基本文本编辑;TABLE键控制;调试程序。

    包含两种模式,交互式和文本式

    2、Sublime Text

    3、Wing

     4、Visual Studio & PTVS

     

     5、PyCharm

     

     6、Anaconda

    适合数据分析科学计算

     

    二、Anaconda IDE的基本使用

    anaconda指的是一个开源的Python发行版本,其包含了conda、Python等180多个科学包及其依赖项,使用了大量的科学包。

    1、下载Anaconda

    网站:https://www.anaconda.com/download/

    2、安装

    3、启动

    (1)

    查看conda 版本与更新

    可以看我们已经安装和尚未安装的库

    (2)Spyder

    可以在tool-》preference中更改界面样式

    (3)交互式编程环境:IPython

    3.3.1 IPthon的?——显示该元素的详细情况

    import numpy as np
    
    a=np.arange(10)
    
    a
    Out[3]: array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9])
    
    a?
    Type:            ndarray
    String form:     [0 1 2 3 4 5 6 7 8 9]
    Length:          10
    File:            d:anacondalibsite-packages
    umpy\__init__.py
    Docstring:       <no docstring>
    Class docstring:
    ndarray(shape, dtype=float, buffer=None, offset=0,
            strides=None, order=None)
    
    An array object represents a multidimensional, homogeneous array
    of fixed-size items.  An associated data-type object describes the
    format of each element in the array (its byte-order, how many bytes it

     3.3.2 IPython的 %run 命令——%run用于运行.py程序注意:%run在一个空的命名空间执行

    %magic

      

     

     

     

     

     

  • 相关阅读:
    Python-炫酷二维码
    Dictionary 序列化与反序列化
    获取数据库所有表名与字段名
    LinQ To Object 基本用法
    使用jq操作脚本生成元素的事件
    表单验证如何让select设置为必选
    js实现复制功能兼容ios
    微信小程序使用函数防抖解决重复点击消耗性能问题
    electronr进行签名与公证
    使用electron在mac升级签名后进行升级出现“QRLUpdaterErrorDomain”的错误
  • 原文地址:https://www.cnblogs.com/ruo-li-suo-yi/p/7705030.html
Copyright © 2011-2022 走看看