Znalostná bázaCentrum skúšok
SKSlovenčina
Vybrať jazyk13

CKTIS / Python

Znalostná báza — Python

Syntax, operátory a pojmy programovania. Nájdi vysvetlenie, prezri si príklad a pokračuj v učení.

Počet hesiel: 583

Python

itertools.starmap

Pri odbere rozbalí každý riadok do pozičných argumentov funkcie.

Stredne pokročilá · Python 3.14; repository image, production runtime not attested
Python

itertools.takewhile

Vydáva počiatočné prvky, kým je predikát pravdivý.

Stredne pokročilá · Python 3.14; repository image, production runtime not attested
Python

itertools.tee

Vytvorí predvolene dva iterátory s vlastnými pozíciami nad jedným zdrojom.

Stredne pokročilá · Python 3.14; repository image, production runtime not attested
Python

itertools.zip_longest

Páruje zodpovedajúce pozície do vyčerpania najdlhšieho vstupu.

Stredne pokročilá · Python 3.14; repository image, production runtime not attested
Python

list.append

Pridá práve jeden objekt na koniec existujúceho zoznamu.

Stredne pokročilá · Python 3.14; repository image, production runtime not attested
Python

list.clear

Odstráni všetky prvky z existujúceho zoznamu a vráti None.

Stredne pokročilá · Python 3.14; repository image, production runtime not attested
Python

list.copy

Vytvorí plytkú kópiu, teda nový zoznam s odkazmi na rovnaké prvky.

Stredne pokročilá · Python 3.14; repository image, production runtime not attested
Python

list.count

Počíta prvky, ktoré sú tým istým objektom ako hľadaný alebo sa mu rovnajú.

Stredne pokročilá · Python 3.14; repository image, production runtime not attested
Python

list.extend

Postupne pridáva prvky iterovateľného objektu do existujúceho zoznamu.

Stredne pokročilá · Python 3.14; repository image, production runtime not attested
Python

list.index

Vráti index od nuly prvého rovného prvku; nepovinné start a stop obmedzia hľadanie bez pozície stop.

Stredne pokročilá · Python 3.14; repository image, production runtime not attested
Python

list.insert

Vloží prvok pred zvolenú pozíciu a krajné indexy oreže na dostupné miesta na vloženie.

Stredne pokročilá · Python 3.14; repository image, production runtime not attested
Python

list.pop

Odstráni a vráti prvok na indexe.

Stredne pokročilá · Python 3.14; repository image, production runtime not attested
Python

list.remove

Odstráni prvý prvok, ktorý je tým istým objektom ako hľadaný alebo sa mu rovná.

Stredne pokročilá · Python 3.14; repository image, production runtime not attested
Python

list.reverse

Obráti poradie v existujúcom zozname bez porovnávania prvkov.

Stredne pokročilá · Python 3.14; repository image, production runtime not attested
Python

list.sort

Zoradí zoznam na mieste a vráti None.

Stredne pokročilá · Python 3.14; repository image, production runtime not attested
Python

logging.basicConfig

basicConfig nastaví pomocou level prah koreňového loggera a určí prúd a formát výstupu.

Stredne pokročilá · Python 3.14; repository image, production runtime not attested
Python

logging.critical

critical oznámi koreňovému loggeru udalosť úrovne CRITICAL s číslom 50.

Stredne pokročilá · Python 3.14; repository image, production runtime not attested
Python

logging.debug

debug posiela diagnostiku úrovne DEBUG (10) koreňovému loggeru.

Stredne pokročilá · Python 3.14; repository image, production runtime not attested
Python

logging.error

error oznámi koreňovému loggeru udalosť úrovne ERROR (40).

Stredne pokročilá · Python 3.14; repository image, production runtime not attested
Python

logging.exception

exception zapisuje udalosť ERROR s predvoleným exc_info=True.

Stredne pokročilá · Python 3.14; repository image, production runtime not attested
Python

logging.Formatter

Formatter skladá z atribútov záznamu, napríklad levelname a message, výsledný text.

Stredne pokročilá · Python 3.14; repository image, production runtime not attested
Python

logging.getLogger

getLogger vráti v interpreteri pre rovnaký názov rovnaký logger a bez názvu koreňový logger.

Stredne pokročilá · Python 3.14; repository image, production runtime not attested
Python

logging.info

info zapisuje bežný priebeh práce na úrovni INFO (20).

Stredne pokročilá · Python 3.14; repository image, production runtime not attested