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

logging.INFO — informativna raven

logging.INFO je konstanta 20, ki označuje dogodke med običajnim delovanjem programa. Kot prag dovoljuje INFO in višje ravni, ne pa DEBUG.

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

logging.Logger

Poimenovani Logger iz getLogger pred posredovanjem zapisa preveri veljavno raven in lastne filtre.

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

LoggerAdapter.info — beleženje s kontekstom

LoggerAdapter.info zabeleži sporočilo INFO s kontekstom prilagodilnika, na primer identifikatorjem zahteve. Preverite, kako se privzeta obravnava extra razlikuje od merge_extra=True.

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

logging.StreamHandler

StreamHandler zapiše besedilo in zaključek v podani tok, privzeto sys.stderr, ter pokliče flush.

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

logging.warning

warning pri korenskem zapisovalniku beleži opozorilo ravni WARNING (30).

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

math.ceil

Vrne najmanjše celo število, ki je večje ali enako x.

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

math.comb

Prešteje izbire k izmed n položajev brez ponavljanja in brez upoštevanja vrstnega reda.

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

math.cos

Izračuna kosinus kota v radianih, vodoravno koordinato na enotski krožnici.

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

math.e

Poda približek Eulerjevega števila, osnove naravnega logaritma, kot float.

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

math.factorial

Izračuna fakulteto nenegativnega celega števila.

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

math.floor

Vrne največje celo število, ki ne presega x.

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

math.fsum

Sešteva števila s plavajočo vejico in hrani več delnih vsot.

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

math.gcd

Vrne nenegativni največji skupni delitelj poljubnega števila celih argumentov.

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

math.inf

Označuje pozitivno neskončnost tipa float.

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

math.isclose

Preveri, ali absolutna razlika ne presega večje meje: absolutne tolerance ali relativne tolerance, pomnožene z večjo absolutno vrednostjo.

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

math.isfinite

Prepozna končna števila, tudi ničlo obeh predznakov.

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

math.isinf

Prepozna natanko pozitivno in negativno neskončnost.

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

math.isnan

Vrne bool, ki pove, ali je argument NaN.

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

math.lcm

Izračuna nenegativni najmanjši skupni večkratnik celih števil.

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

math.log

Določi eksponent, na katerega moramo potencirati osnovo, da dobimo x.

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

math.log10

Izračuna desetiški logaritem za primerjavo velikostnih redov.

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

math.log2

Vrne eksponent potence števila dve, ki ustreza x.

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

math.nan

Poda posebno vrednost float, ki označuje odsotnost številskega rezultata.

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

math.perm

Prešteje urejene izbire k izmed n položajev brez ponavljanja.

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