Accepting arbitrary keyword arguments in Python

Pubblicato il: 16 gennaio 2023
sul canale di: Python Morsels
184
11

Ever seen **kwargs in a function definition? There's nothing special about the name "kwargs": it's the ** that's special. You can use Python's ** operator to define a function that accepts arbitrary keyword arguments.

Read an article version of this video at https://pym.dev/accepting-arbitrary-k...

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

00:00 Passing keyword arguments to a function
00:37 Capturing arbitrary keyword arguments
02:05 Arbitrary keyword arguments within Python
02:58 Use ** to accept arbitrary keyword arguments


In questa pagina del sito puoi guardare il video online Accepting arbitrary keyword arguments in Python della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Python Morsels 16 gennaio 2023, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 184 volte e gli è piaciuto 11 spettatori. Buona visione!