tasks a-s
This commit is contained in:
parent
47bf37c096
commit
b83f433714
12433 changed files with 156208 additions and 123 deletions
7
Task/Polymorphic-copy/Python/polymorphic-copy-2.py
Normal file
7
Task/Polymorphic-copy/Python/polymorphic-copy-2.py
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
import cPickle as pickle
|
||||
|
||||
source = {'a': [1, 2.0, 3, 4+6j],
|
||||
'b': ('string', u'Unicode string'),
|
||||
'c': None}
|
||||
|
||||
target = pickle.loads(pickle.dumps(source))
|
||||
Loading…
Add table
Add a link
Reference in a new issue