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:\anaconda\lib\site-packages\numpy\__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

 

  

 

 

 

 

 

 

 

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM