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

  

 

 

 

 

 

原文地址:https://www.cnblogs.com/ruo-li-suo-yi/p/7705030.html