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

itertools.starmap

Podczas pobierania wyniku rozpakowuje elementy wiersza jako argumenty pozycyjne funkcji.

Średniozaawansowany · Python 3.14; repository image, production runtime not attested
Python

itertools.takewhile

Zwraca początkowe elementy, dopóki predykat jest prawdziwy.

Średniozaawansowany · Python 3.14; repository image, production runtime not attested
Python

itertools.tee

Tworzy domyślnie dwa iteratory z osobnymi pozycjami nad jednym źródłem.

Średniozaawansowany · Python 3.14; repository image, production runtime not attested
Python

itertools.zip_longest

Łączy odpowiadające sobie pozycje aż do wyczerpania najdłuższego wejścia.

Średniozaawansowany · Python 3.14; repository image, production runtime not attested
Python

list.append

Dodaje dokładnie jeden obiekt na końcu istniejącej listy.

Średniozaawansowany · Python 3.14; repository image, production runtime not attested
Python

list.clear

Usuwa wszystkie elementy z istniejącej listy i zwraca None.

Średniozaawansowany · Python 3.14; repository image, production runtime not attested
Python

list.copy

Tworzy płytką kopię, czyli odrębną listę z odwołaniami do tych samych elementów.

Średniozaawansowany · Python 3.14; repository image, production runtime not attested
Python

list.count

Zlicza elementy będące tym samym obiektem co szukany albo porównujące się z nim jako równe.

Średniozaawansowany · Python 3.14; repository image, production runtime not attested
Python

list.extend

Pobiera kolejne elementy obiektu iterowalnego i dopisuje je do istniejącej listy.

Średniozaawansowany · Python 3.14; repository image, production runtime not attested
Python

list.index

Zwraca liczony od zera indeks pierwszego równego elementu; opcjonalne start i stop ograniczają wyszukiwanie, a stop jest wyłączone.

Średniozaawansowany · Python 3.14; repository image, production runtime not attested
Python

list.insert

Wstawia element przed wybraną pozycją i obcina skrajne indeksy do dostępnych miejsc wstawienia.

Średniozaawansowany · Python 3.14; repository image, production runtime not attested
Python

list.pop

Usuwa i zwraca element pod indeksem; ujemny indeks liczy od końca, a domyślny −1 wskazuje ostatni element.

Średniozaawansowany · Python 3.14; repository image, production runtime not attested
Python

list.remove

Usuwa pierwsze wystąpienie tego samego obiektu lub obiektu porównującego się jako równy.

Średniozaawansowany · Python 3.14; repository image, production runtime not attested
Python

list.reverse

Odwraca kolejność pozycji w istniejącej liście bez porównywania elementów.

Średniozaawansowany · Python 3.14; repository image, production runtime not attested
Python

list.sort

Sortuje listę w miejscu i zwraca None.

Średniozaawansowany · Python 3.14; repository image, production runtime not attested
Python

logging.basicConfig

basicConfig ustawia próg level głównego loggera oraz strumień i format jego obsługi wyjścia.

Średniozaawansowany · Python 3.14; repository image, production runtime not attested
Python

logging.critical

critical zgłasza głównemu loggerowi zdarzenie poziomu CRITICAL o numerze 50.

Średniozaawansowany · Python 3.14; repository image, production runtime not attested
Python

logging.debug

debug wysyła dane diagnostyczne poziomu DEBUG (10) do głównego loggera.

Średniozaawansowany · Python 3.14; repository image, production runtime not attested
Python

logging.error

error przekazuje głównemu loggerowi zdarzenie poziomu ERROR (40).

Średniozaawansowany · Python 3.14; repository image, production runtime not attested
Python

logging.exception

exception zapisuje zdarzenie ERROR z domyślnym exc_info=True.

Średniozaawansowany · Python 3.14; repository image, production runtime not attested
Python

logging.Formatter

Formatter tworzy tekst z atrybutów rekordu, takich jak levelname i message.

Średniozaawansowany · Python 3.14; repository image, production runtime not attested
Python

logging.getLogger

getLogger zwraca ten sam logger dla tej samej nazwy w interpreterze, a bez nazwy zwraca główny logger.

Średniozaawansowany · Python 3.14; repository image, production runtime not attested
Python

logging.info

info zapisuje postęp zwykłej pracy na poziomie INFO (20).

Średniozaawansowany · Python 3.14; repository image, production runtime not attested