Keyword only function arguments Python

Pubblicato il: 23 gennaio 2023
sul canale di: Python Morsels
386
16

If you see a function that has an asterisk (`*`) on its own with a comma after it, every argument after that point is a keyword-only argument (an argument which can only be specified by its name).

Read an article version of this video at https://pym.dev/keyword-only-function...

Find more Python screencasts at https://pym.dev/screencasts/

00:00 Accepting arbitrary positional arguments
00:24 Accepting a keyword-only argument
01:33 The `print` function works this way
02:19 Keyword-only arguments without capturing all positional arguments
03:03 Keyword-only arguments in the standard library
03:45 Keyword-only arguments come after `*` in a function definition


In questa pagina del sito puoi guardare il video online Keyword only function arguments Python della durata di online in buona qualità , che l'utente ha caricato Python Morsels 23 gennaio 2023, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 386 volte e gli è piaciuto 16 spettatori. Buona visione!