Created
November 3, 2016 14:01
-
-
Save drj11/287c9f565d387cbfb96f69265c6f41de to your computer and use it in GitHub Desktop.
structure sharing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a=[1] | |
b=['b'] | |
c=['c'] | |
b.append(a) | |
c.append(a) | |
print(b) | |
print(c) | |
b[1].append('xyz') | |
print(b) | |
print(c) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think if you drew a diagram it would become clear that: you don't really use that model above; or, it's terrible.