diff options
author | Anoop Jacob Thomas | 2010-11-07 18:36:59 +0530 |
---|---|---|
committer | Anoop Jacob Thomas | 2010-11-07 18:36:59 +0530 |
commit | 750a0f2b18a04119429be98f836d492804441ea8 (patch) | |
tree | 8ceea550784ef2f73381674d0e6434e0e3d2d451 /using python modules | |
parent | 279219b4f36dfbebbc9bc65b6d8e5976862cd91d (diff) | |
download | st-scripts-750a0f2b18a04119429be98f836d492804441ea8.tar.gz st-scripts-750a0f2b18a04119429be98f836d492804441ea8.tar.bz2 st-scripts-750a0f2b18a04119429be98f836d492804441ea8.zip |
Added quickrefs for dictionaries, getting started with arrays, for, matrices, other plots, savefig, using python modules.
Diffstat (limited to 'using python modules')
-rw-r--r-- | using python modules/quickref.tex | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/using python modules/quickref.tex b/using python modules/quickref.tex new file mode 100644 index 0000000..cfa992a --- /dev/null +++ b/using python modules/quickref.tex @@ -0,0 +1,16 @@ +Import all definitions to current name-space:\\ +{\ex \lstinline| from scipy import *|} + +Import few definitions to current name-space:\\ +{\ex \lstinline| from scipy import linspace, pi, sin|} + +Import a module as a new name-space:\\ +{\ex \lstinline| import scipy|} + +Few standard python modules:\\ +{\ex \lstinline| Math: math, random|} +{\ex \lstinline| Internet: urllib2, smtplib|} +{\ex \lstinline| System: sys|} +{\ex \lstinline| OS: os|} +{\ex \lstinline| Regular Expression: re|} +{\ex \lstinline| Compression: gzip, zipfile, tarfile|} |