- 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:

推薦閱讀
- 32位嵌入式系統與SoC設計導論
- 輕松學C語言
- TIBCO Spotfire:A Comprehensive Primer(Second Edition)
- VMware Performance and Capacity Management(Second Edition)
- 80x86/Pentium微型計算機原理及應用
- WordPress Theme Development Beginner's Guide(Third Edition)
- 網絡安全與防護
- Microsoft System Center Confi guration Manager
- 重估:人工智能與賦能社會
- 計算機應用基礎實訓(職業模塊)
- 穿越計算機的迷霧
- Practical Network Automation
- Oracle 11g基礎與提高
- 傳感器應用技術
- 探索中國物聯網之路