image
接續這兩篇 Learning Python N-Dimensional Array–Part I

Learning Python N-Dimensional Array-Part II


接下來, 利用Python 內建函式庫計算求和, 平均值 和方差


a = np.random.randint(0, 10, size=(4, 5))
 
a
Out[11]: 
array([[7, 5, 1, 1, 2],
 [8, 8, 2, 8, 2],
 [0, 3, 2, 7, 6],
 [3, 9, 7, 8, 2]])

me1237guy 發表在 痞客邦 留言(0) 人氣()

image
為什麼要學習Python?可以從下列TIOBE 排行看出學習新的程式語言得先從基礎開始, 發現這種script-file language其實語法都和MATLAB, R語言 差不多
import numpy as np
例如:產生一個向量[1, 2, 3, 4]

me1237guy 發表在 痞客邦 留言(0) 人氣()

image
今天第一次使用spyderlib, 這是一個由Python(x, y)所開發出來的整合開發環境, 跟MATLAB的人機介面有相當多雷同之處,可以方便觀察和修改陣列的值, 真是貼心的設計!!Download如果當初你是安裝64位元版本Python, 就必須下載spyder-2.2.5.win-amd64.exe否則下載spyder-2.2.5.win32.exe 這樣才有辦法使用附註:

me1237guy 發表在 痞客邦 留言(0) 人氣()

image
Python(x,y)-2.7.3.0C:\Program Files (x86)\pythonxy安裝完成In[1]~In[5] 依序輸入指令Out[5] 為輸出結果關閉console時會跳出提示對話框

me1237guy 發表在 痞客邦 留言(0) 人氣()


Zero to Hero with Python
Python Tutorial: Zero to Hero with Python / Introduction to Programming with Python https://codek.tv/93
Take a Python Fan T-shirt: https://goo.gl/r62bRK
The Complete Web Developer Course - Build 14 Websites ☞ https://hii.to/EJCTLJG-e
Python and Django Tutorials Building Websites from Scratch https://goo.gl/Tgs6zT
Learning Python for Data Analysis and Visualization http://bit.ly/1NsFaCy
Create projects using Raspberry Pi and Python http://bit.ly/1LpZRNu
Python Tutorial: Creating Web Sites using Python and Flask
https://goo.gl/XSMKmu
Creating Websites using SQL, Python, and Flask
https://goo.gl/skzTi4
Explore More Python Tutorial http://bit.ly/1MWVkSg
Are you brand new to coding? Want to see how fun and easy it can be? Watch engaging experts Susan Ibach and Christopher Harrison for an entertaining introduction to solving real-world problems using the popular programming language, Python. Susan and Christopher offer a step-by-step walk-through, from a basic idea to translating that idea into code, and everything in between.
Don't worry about making mistakes! Python uses simple syntax, has an easy learning curve, and is a very forgiving language. Gain a new skill or complete a task by the end of each module, and, by the end of the course, you will be writing programs! You also learn basic principles which can make it easier for you to learn other programming languages in the future. Don't miss this opportunity to go beyond the if statement!
[00:00:00] Getting Started
Explore applications of Python language, and create a "Hello world" application for Python in Visual Studio as you learn the benefits of knowing Python. Get help setting up your computer so you can start coding.
[00:50:21] Displaying Text
Get an introduction to the print statement, comments, and basic formatting, so you can display and format text to a user.
[01:20:29] String Variables
Learn about the input statement, string variables, and manipulate strings, so you can prompt a user for input, store values in a string, and use string functions to manipulate string values.
[02:20:00] Storing Numbers
Hear an introduction to numeric datatypes and variables, how to do math operations, and datatype conversions. Learn to store numeric values and perform math operations.
[03:14:26] Working with Dates and Time
Get the details on date variable storage and issues, along with date functions and formatting, so you can store and manipulate date values.
[04:05:53] Making Decisions with Code
Hear an introduction to basic if/else statements and Boolean variables, so you can write code that reacts differently to different user inputs.
[04:57:42] Complex Decisions with Code
Explore and/or statements, nested if statements, and elif, so you can write code that reacts differently to more complex user inputs.
[05:55:39] Repeating Events
Take a look at for loops and nested for loops, so you can write code that repeats a fixed number of times.
[06:47:03] Repeating Events until Done
Play with while loops, and learn when to use for versus while loops, so you can write code that repeats as often as needed.
[07:20:18] Remembering Lists
Get the details on arrays and lists, so you can store multiple values.
[08:04:21] How to Save Information in Files
Hear about functions for creating and writing to files, so you can write code that saves information in a file so you can remember it later.
[08:40:42] Reading from Files
Explore functions for reading from files, so you can read information that was saved in a file.
[09:25:21] Functions
Learn about the syntax for declaring functions and how to call functions from your code, so you can use functions to avoid retyping the same code over and over.
[10:13:29] Handling Errors
Get the details on syntax for error handling, so you can write code that can handle common error situations without crashing.
Source Code: https://github.com/kidscancode/intro-...
Python Tutorial: Creating Web Sites using Python and Flask
https://goo.gl/XSMKmu
Creating Websites using SQL, Python, and Flask
https://goo.gl/skzTi4
If you feel useful for you and for everyone, please share it!
Source via: Channel9 - MVA
------
Subscribe: http://goo.gl/gA1NLZ
Facebook: http://goo.gl/oEk624
Group: http://goo.gl/xPdeEX
Google+: http://goo.gl/iGZzZX
Twitter: http://goo.gl/PNRtC8
About & Contact: http://goo.gl/JAolqj

me1237guy 發表在 痞客邦 留言(0) 人氣()

Blog Stats
⚠️

成人內容提醒

本部落格內容僅限年滿十八歲者瀏覽。
若您未滿十八歲,請立即離開。

已滿十八歲者,亦請勿將內容提供給未成年人士。