Practical Python Programming - Louisiana State University
嚜澠ntermediate Python
Programming
Feng Chen
HPC User Services
LSU HPC & LONI
sys-help@
Louisiana State University
Baton Rouge
March 29, 2017
Outline
? Basic Python Review
? Introducing Python Modules:
? Numpy
? Matplotlib
? Scipy
? Examples
每 Calculate derivative of a function
每 Calculate k nearest neighbor
03/29/2016
Intermediate Python Programming
2
Overview of Basic Python
? Python is a general-purpose interpreted, interactive, object-oriented,
and high-level programming language.
? It was created by Guido van Rossum during 1985-1990. Like Perl,
Python source code is also available under the GNU General Public
License (GPL).
03/29/2016
Intermediate Python Programming
3
Advantage of using Python
? Python is:
每 Interpreted:
? Python is processed at runtime by the interpreter. You do not need to
compile your program before executing it. This is similar to PERL and PHP.
每 Interactive:
? You can actually sit at a Python prompt and interact with the interpreter
directly to write your programs.
每 Object-Oriented:
? Python supports Object-Oriented style or technique of programming that
encapsulates code within objects.
每 Beginner's Language:
? Python is a great language for the beginner-level programmers and supports
the development of a wide range of applications from simple text processing
to browsers to games.
03/29/2016
Intermediate Python Programming
4
First ※Hello World§ in Python
? Compared with other language:
每 Fast for writing testing and developing code
每 Dynamically typed, high level, interpreted
? First Hello World example:
#!/usr/bin/env python
print "Hello World!"
? Explanation of the first line shebang (also called a hashbang,
hashpling, pound bang, or crunchbang) refers to the characters "#!":
每 Technically, in Python, this is just a comment line, can omit if run with
the python command in terminal
每 In order to run the python script, we need to tell the shell three things:
? That the file is a script
? Which interpreter we want to execute the script
? The path of said interpreter
03/29/2016
Intermediate Python Programming
5
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
- python programming for data processing and climate umd
- using python like matlab and mathematica
- python nump and park edu
- numpy arrays marquette university
- python for loop append numpy array weebly
- legate numpy accelerated and distributed array computing
- creating simple array and converting to numpy array
- matlab commands in numerical python numpy
- numerical and scientific computing in python bu
- lab numerics with numpy day 1 university of montana
Related searches
- louisiana state tax phone number
- louisiana state school board association
- louisiana state tax mailing address
- louisiana state education department
- louisiana state employee perks
- louisiana state department of licensing
- louisiana state workers compensation laws
- python programming books free pdf
- best python programming book
- python programming language pdf book
- free python programming books
- python programming pdf free download