Leanpub Header

Skip to main content

UCZYMY SIĘ PROGRAMOWAĆ W PYTHONIE

Otwarty podręcznik programowania

Większość podręczników programowania uczy konkretnych języków. Niniejszy podręcznik pomaga w nauce programowania, umożliwiając poznawanie języka Python niejako przy okazji.

Free With Membership

With Membership

Free!

$7.99

You pay

$0.00

Author earns

$0.00
$

...Or Buy With Credits!

You can get credits monthly with a Reader Membership
PDF
EPUB
WEB
643
Readers
150
Pages
About

About

About the Book

Otwarty podręcznik w języku polskim do nauki programowania na przykładach w języku Python. Punktem wyjścia do opracowania była praca: Swaroop C H „A Byte of Python” (Podręcznik na gitbook: http://python.swaroopch.com).

Podręcznik powstał z inicjatywy Fundacji Galicea - jako część projektu Otwarta Edukacja.

Share this book

License

Creative Commons Attribution-ShareAlike 4.0 International License

Author

About the Author

Jerzy Wawro

Contents

Table of Contents

Wprowadzenia – o zawartości podręcznika

  1. Licencja
  2. Prawa uzytkowania i powielania
  3. Zaproszenie do współpracy
  4. Wykorzystane materiały i opracowania
  5. Kod programów
  6. Licencjonowanie kodu
  7. Język angielski

Myśleć jak programista Pythona

  1. Środowisko
  2. Mechanizmy
  3. Ćwiczenie
  4. Gramatyka

Python jako kalkulator

  1. Operatory
  2. Kolejność wartościowania
  3. Zmiana kolejności działań
  4. Podsumowanie

Przetwarzanie niewielkich ilości danych

  1. Jak to zrobić?
  2. Ćwiczenia do samodzielnego wykonania
  3. Instrukcja for
  4. Struktury danych
  5. Listy
  6. Krotki
  7. Słowniki
  8. Zbiory

Python jako język zapisu algorytmów

  1. Instrukcja warunkowa (if)
  2. Pęlta while
  3. Podsumowanie

Jak radzić sobie ze złożonością

  1. Funkcje
  2. Obiekty
  3. Moduły
  4. Dziedziczenie
  5. Pakiety
  6. Dekoratory funkcji

Operacje na listach i łańcuchach znaków

  1. Sekwencje
  2. Referencje
  3. Łańcuchy znaków

Definiowanie i używanie funkcji

  1. Wprowadzenie
  2. Parametry funkcji
  3. Parametry i argumenty
  4. Wynik funkcji - wyrażenie return
  5. Domyślne wartości parametrów
  6. Wywołanie funkcji z odwołaniem do parametrów poprzez nazwę
  7. Zmienna ilość parametrów
  8. Zakres widoczności parametrów i zmiennych
  9. Zmienne lokalne
  10. Przestrzenie nazw
  11. Użycie wyrażenia global

Świat obiektów

  1. Adres zwrotny
  2. Uporządkujmy naszą wiedzę o obiektach
  3. Klasy
  4. Metody obiektowe
  5. Dziedziczenie
  6. Metody statyczne
  7. Dekoratory – czyli nowa magia
  8. Interfejsy i wtyczki

Przetwarzanie danych

  1. Pliki
  2. Pickle
  3. Pliki i wyrażenie with
  4. Bazy danych

Pisanie niezawodnego kodu

  1. Wyjątki, czyli przewidywanie niespodziewanego
  2. Obsługa wyjątków
  3. Zgłaszanie wyjątków
  4. try…finally…
  5. Zostawianie śladów
  6. Automatyczne dokumentowanie
  7. Kodowanie oparte o testy

Przepływ danych i sterowania

  1. Co to jest sterowanie?
  2. 1.Konsola Pythona
  3. 2.Skrypty, programy wsadowe i pliki
  4. 3.Potoki i gniazda.
  5. 4.Obiekty
  6. 5.Zdarzenia
  7. 6.Wyjątki
  8. 7.Systemy wielowarstwowe i rozproszone, interfejsy.

Styl programowania

  1. PEP8
  2. Zen Pythona
  3. Lukier składniowy
  4. Idiomy w programowaniu
  5. Programowanie obiektowe
  6. Pamiętaj, że wszystko jest obiektem
  7. Unikaj magii

Kilka ważnych kwestii na zakończenie…

  1. Python 2.x czy Python 3.x ?
  2. Środowisko wirtualne
  3. Kompatybilność
  4. Polskie znaki
  5. Uwagi dla osób programujących w innych językach

Contributor

About the Contributors

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.

You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!

So, there's no reason not to click the Add to Cart button, is there?

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earned over $14 million writing, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub