- Hands-On Data Science with Anaconda
- Dr. Yuxing Yan James Yan
- 135字
- 2021-06-25 21:08:46
Testing Python
The steps for testing Python are as follows:
- For PC users, after clicking All Programs, Anaconda3.6, and then Anaconda Prompt, we would see the following.
Note that different users would probably get a different path:

- Then, just type python, and we can launch it, as shown here:

- It tells us that Python 3.6.3 was operational. We could also try import scipy as sp to see if it is preinstalled:

- After we type import scipy as sp, no error message appears, which indicates that the package was preinstalled. The command of sp.sqrt(3) would offer us the square root of 3. Another example with the related graph is shown here:
import scipy as np from pylab import * x=np.linspace(-np.pi,np.pi,256,endpoint=True) c,s=np.cos(x),np.sin(x) plot(x,c),plot(x,s) show()
The previous code will give an output such as the following:

推薦閱讀
- 人工智能超越人類
- 過程控制工程及仿真
- Machine Learning for Cybersecurity Cookbook
- Verilog HDL數字系統設計入門與應用實例
- Hands-On Machine Learning on Google Cloud Platform
- 分布式多媒體計算機系統
- Associations and Correlations
- 觸控顯示技術
- Mastering ServiceNow Scripting
- 突破,Objective-C開發速學手冊
- 新編計算機圖形學
- Artificial Intelligence By Example
- Cortex-M3嵌入式處理器原理與應用
- 基于人工免疫原理的檢測系統模型及其應用
- 智能+:制造業的智能化轉型