equal
deleted
inserted
replaced
|
1 Import all definitions to current name-space:\\ |
|
2 {\ex \lstinline| from scipy import *|} |
|
3 |
|
4 Import few definitions to current name-space:\\ |
|
5 {\ex \lstinline| from scipy import linspace, pi, sin|} |
|
6 |
|
7 Import a module as a new name-space:\\ |
|
8 {\ex \lstinline| import scipy|} |
|
9 |
|
10 Few standard python modules:\\ |
|
11 {\ex \lstinline| Math: math, random|} |
|
12 {\ex \lstinline| Internet: urllib2, smtplib|} |
|
13 {\ex \lstinline| System: sys|} |
|
14 {\ex \lstinline| OS: os|} |
|
15 {\ex \lstinline| Regular Expression: re|} |
|
16 {\ex \lstinline| Compression: gzip, zipfile, tarfile|} |