Assignment vs Mutation in Python

Pubblicato il: 18 maggio 2024
sul canale di: Python Morsels
397
23

In Python, "change" can mean two different things. Assignment changes which object a variable points to. Mutation, changes the object itself.

Article at https://pym.dev/assignment-versus-mut...

More #Python screencasts at https://pym.dev/screencasts/

00:00 Variables in Python are pointers
00:27 Mutating a list
01:07 Mutation
01:35 Assignment
02:19 Assignment vs mutation
03:03 Changing variables and changing objects


In questa pagina del sito puoi guardare il video online Assignment vs Mutation in Python della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Python Morsels 18 maggio 2024, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 397 volte e gli è piaciuto 23 spettatori. Buona visione!