Sind Python -Sätze veränderlich?Python

Python-Programme
Anonymous
 Sind Python -Sätze veränderlich?

Post by Anonymous »

sind Sätze in Python mutable?

Code: Select all

x = set([1, 2, 3])
y = x

y |= set([4, 5, 6])
Werden X und y immer noch auf dasselbe Objekt hinweisen, oder wurde ein neuer Satz erstellt und Y ?

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post