SHARE
TWEET

Untitled

a guest Jun 25th, 2019 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. a = [1, 2]
  2. b = a[:]
  3.      
  4. a = [[1, 2],[3, 4]]
  5. b = a[:]
  6.      
  7. import copy
  8. b = copy.deepcopy(a)
  9.      
  10. b = [x[:] for x in a]
  11.      
  12. b=a.copy()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top