Baza wiedzyCentrum egzaminacyjne
PLPolski
Wybierz język13

CKTIS / Python

Baza wiedzy — Python

Składnia, operatory i pojęcia programowania. Znajdź wyjaśnienie, sprawdź przykład i wróć do nauki.

Liczba haseł: 583

Python

Operator !=

Listy są nierówne, gdy mają różne długości albo choć jedna para odpowiadających sobie elementów nie przechodzi testu tożsamości ani testu równości ==.

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

Operator <<

Przesuwa bity liczby całkowitej w lewo o wskazaną liczbę pozycji, dopisując zera po prawej.

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

Operator <<=

Aktualizuje liczbę całkowitą przez przesunięcie jej bitów w lewo.

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

Operator <=

Sprawdza, czy lewa liczba nie przekracza górnej granicy, włączając samą granicę.

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

Operator <

Sprawdza, czy lewa liczba jest ściśle mniejsza od prawej.

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

Operator and

Najpierw sprawdza prawdziwość lewego operandu.

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

Operator not

Odwraca wynik testu prawdziwości i zawsze zwraca True lub False.

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

Operator or

Zwraca lewy operand, jeśli jest prawdziwy, i wtedy nie oblicza prawego.

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

Operator @=

Przypisuje wynik mnożenia macierzowego do pierwotnego celu.

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

Operator @

Zleca mnożenie macierzowe typom operandów.

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

Operator in

Sprawdza przynależność do obiektu po prawej.

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

Operator *

Mnoży liczby lub powtarza sekwencję całkowitą liczbę razy.

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

Operator *=

Dla liczb zapisuje iloczyn, a dla listy powtarza jej elementy w tej samej liście.

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

Operator is not

Zwraca True, gdy operandy są różnymi obiektami, niezależnie od zgodności ich wartości.

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

Operator not in

Zwraca True, gdy szukany element nie należy do obiektu po prawej.

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

Operator %

Zwraca resztę z dzielenia odpowiadającą ilorazowi zaokrąglonemu w dół.

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

Operator %=

Zastępuje poprzednią liczbę resztą z dzielenia przez prawy operand.

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

Operator >>

Przesuwa bity całkowite w prawo i odrzuca najmłodsze bity.

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

Operator >>=

Zapisuje w celu liczbę całkowitą po odrzuceniu podanej liczby najmłodszych bitów.

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

Operator -

Odejmuje prawą liczbę od lewej, więc zmiana kolejności odwraca znak różnicy.

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

Operator -=

Odejmuje prawą wartość od dotychczasowej wartości celu i zapisuje różnicę.

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

Minus jednoargumentowy

Zmienia znak pojedynczego operandu za pomocą jego protokołu negacji liczbowej.

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

Rozpakowywanie słowników

Zapis {**a, **b} tworzy nowy słownik z elementów dwóch mapowań. Przy powtarzających się kluczach wygrywa późniejsza wartość; słowniki źródłowe pozostają niezmienione.

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

docstring — tekst dokumentacyjny

Docstring to zwykły literał tekstowy (nie f-string ani t-string), użyty jako pierwsza instrukcja modułu, klasy lub funkcji. Dokumentuje przeznaczenie obiektu i jest dostępny przez __doc__; nie jest komentarzem rozpoczynającym się od #.

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