Baza znanjaIzpitno središče
SLSlovenščina
Izberi jezik13

CKTIS / Python

Baza znanja — Python

Sintaksa, operatorji in programski pojmi. Poišči razlago, oglej si primer in nadaljuj učenje.

Število gesel: 583

Python

Modul unittest

Organizira testne metode v razrede TestCase in jih izvaja v zbirkah.

Srednja · Python 3.14; repository image, production runtime not attested
Python

Operator +

Sešteje dve števili ali stakne združljivi zaporedji v vrstnem redu operandov.

Osnovna · Python 3.14; repository image, production runtime not attested
Python

Operator +=

Levi cilj posodobi s seštevanjem.

Osnovna · Python 3.14; repository image, production runtime not attested
Python

Operator =

Najprej ovrednoti desno stran, nato rezultat veže na ime ali ga priredi cilju.

Osnovna · Python 3.14; repository image, production runtime not attested
Python

Operator :=

Enkrat ovrednoti desno stran, rezultat veže na ime in isto vrednost vrne kot rezultat izraza.

Osnovna · Python 3.14; repository image, production runtime not attested
Python

Operator &

Bit rezultata je ena le tam, kjer imata obe celi števili enico.

Osnovna · Python 3.14; repository image, production runtime not attested
Python

Operator &=

Shrani bitni IN prejšnje vrednosti in maske.

Osnovna · Python 3.14; repository image, production runtime not attested
Python

Operator ~

Obrne vse bite celega števila.

Osnovna · Python 3.14; repository image, production runtime not attested
Python

Operator |

Bit nastavi na ena, če ima na tem mestu enico vsaj eden od obeh operandov.

Osnovna · Python 3.14; repository image, production runtime not attested
Python

Operator |=

V shranjenem številu vključi zastavice, izbrane z enicami v maski, in ohrani druge bite.

Osnovna · Python 3.14; repository image, production runtime not attested
Python

Operator ^

Vrne ena, kadar sta bita različna, in nič, kadar sta enaka.

Osnovna · Python 3.14; repository image, production runtime not attested
Python

Operator ^=

V cilju preklopi le bite, izbrane z enicami maske.

Osnovna · Python 3.14; repository image, production runtime not attested
Python

Operator /

Deli levo število z desnim. Dve vgrajeni celi števili dasta rezultat tipa float, tudi če je deljenje brez ostanka.

Osnovna · Python 3.14; repository image, production runtime not attested
Python

Operator /=

Deli dosedanjo vrednost z desnim operandom in shrani količnik.

Osnovna · Python 3.14; repository image, production runtime not attested
Python

Operator ==

Primerja vrednosti. Dva ločena seznama z enakimi elementi v enakem vrstnem redu sta enaka.

Osnovna · Python 3.14; repository image, production runtime not attested
Python

Operator **

Potencira levo osnovo z desnim eksponentom.

Osnovna · Python 3.14; repository image, production runtime not attested
Python

Operator **=

Dosedanjo vrednost potencira z desnim eksponentom in shrani potenco.

Osnovna · Python 3.14; repository image, production runtime not attested
Python

Operator //

Izračuna količnik in ga zaokroži navzdol proti minus neskončno.

Osnovna · Python 3.14; repository image, production runtime not attested
Python

Operator //=

Shrani navzdol zaokroženi količnik, denimo pri pretvorbi položaja v številko intervala.

Osnovna · Python 3.14; repository image, production runtime not attested
Python

Operator >=

Preveri, ali leva vrednost doseže ali preseže spodnjo mejo.

Osnovna · Python 3.14; repository image, production runtime not attested
Python

Operator >

Preveri, ali je levi operand strogo večji od desnega; enakost ne zadošča.

Osnovna · Python 3.14; repository image, production runtime not attested
Python

Operator is

Preveri, ali oba sklica kažeta na isti objekt.

Osnovna · Python 3.14; repository image, production runtime not attested
Python

Operator []

Celoštevilski indeks izbere en element, negativni šteje od konca.

Osnovna · Python 3.14; repository image, production runtime not attested