Git Product home page Git Product logo

blog's Introduction

This is my blog. It's hosted at http://encukou.cz

If you have a comment, tweet me at @encukou.
If you have a substantial comment, or correction, send a pull request.

If you want to follow it, watch it on Github.

Enjoy.

        Petr Viktorin

 github.com/encukou
           @encukou
            [email protected]


The Chunk-based theme is available under the GNU GPL, see theme/eck/licence.txt

The contents of the blog are available under the
Creative Commons Attribution-ShareAlike 3.0 Unported License:
    http://creativecommons.org/licenses/by-sa/3.0/deed.en_US

blog's People

Contributors

encukou avatar onlyhavecans avatar timthelion avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

blog's Issues

Data types and variables

Differences between
alias - vytvorenie a = b
plytka kopia objektu - pracuje sa iba s odkazom na objekt, pri zmene sa zmeni aj povodny objekt a = b[:]
hlboka kopia objektu - vytvori sa v pameti novy objekt deepcopy. Pri zmene sa povodny nezmeni.

Type

Zoradeny zoznam (list) operácie pridávania, mazania, na začiatok, koniec alebo pred / za určitý prvok. Sú menitelné. Můžu mař rozličnú dlžku a můžu obsahovař polozky různych dátových typov.
Zásobník (LIFO = Last In First Out = v Pythone sa s nimi pracuje pomocou zoznamou. Pridávanie nových prvkov pomocou append. výber prvku pomocou metódy pop() - vyberie vrchny prvok alebo pomocou metody pop(i) vyberie ity prvok. Su menitelne.
Fronta (FIFO - First In First Out) - implementovane v pytone pomocou zoznamu, aj ked to nie je velmi efektivne. Pracuje sa s nimi pomocou collections. Operacie pridavavania prvkov, mazania, a test prazdnosti fronty.
Ntica - je rovnaka ako zoznam. Namiesto hranatych zatvoriek obsahuje kulate a je nemenitelnou datovou strukturou.
Mnoziny - obsahuju polozky bez duplicit. Zoznam mozeme konvertovat na mnozinu pomocou prikazu set.

Dynamicke implicitne typovanie

Narozdiel od statickeho sa v Pythone datovy typ nedefinuje. Pri deklaracii premennej sa urci sam automaticky. Pocas prace sa moze zmenit.

Osetrenie pomocou exceptions napriklad. Kod doplnim potom .

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.