Python tutorials for absolute beginners.
|
преди 12 години | |
---|---|---|
assets | преди 12 години | |
.gitignore | преди 12 години | |
01-frontpage.md | преди 12 години | |
02-preface.md | преди 12 години | |
03-intro.md | преди 12 години | |
04-installation.md | преди 12 години | |
05-first-steps.md | преди 12 години | |
06-basics.md | преди 12 години | |
07-operators-expressions.md | преди 12 години | |
08-control-flow.md | преди 12 години | |
09-functions.md | преди 12 години | |
10-modules.md | преди 12 години | |
11-data-structures.md | преди 12 години | |
12-problem-solving.md | преди 12 години | |
13-oop.md | преди 12 години | |
14-io.md | преди 12 години | |
15-exceptions.md | преди 12 години | |
16-standard-library.md | преди 12 години | |
17-more.md | преди 12 години | |
18-what-next.md | преди 12 години | |
19-appendix-floss.md | преди 12 години | |
20-appendix-about.md | преди 12 години | |
21-revision-history.md | преди 12 години | |
22-translations.md | преди 12 години | |
23-translation-howto.md | преди 12 години | |
LICENSE | преди 12 години | |
README.md | преди 12 години | |
config.json | преди 12 години | |
fabfile.py | преди 12 години | |
requirements.txt | преди 12 години |
Ensure Python (>= 2.7) is installed for compiling the sources. You will need Python 3 to run the Python programs itself.
Install Pandoc >= 1.11.1 from http://johnmacfarlane.net/pandoc/installing.html
Install pdflatex
from http://www.tug.org/texlive/.
Note that Mac users can install MacTex.pkg
from http://www.tug.org/mactex/2012/.
Install pip
if not present already:
sudo sh -c "curl -k -O https://raw.github.com/pypa/pip/master/contrib/get-pip.py && python get-pip.py && rm get-pip.py"
Install Python libraries needed:
sudo pip install -r requirements.txt
Convert the source files into HTML files:
fab html
Convert the source files into PDF:
fab pdf
Convert the source files into EPUB (ebook):
fab epub
If you're using Emacs, you must use Jason Blevins' Markdown Mode.
If you're using Vim, then you may like the
vim-pandoc plugin. There
is one downside though - for long chapters, it becomes really slow, so
I edit only in plain text mode (:set ft=
), but when reviewing, I use
the pandoc
(:set ft=pandoc
) mode.