why the different output in Eclipse and Python Shell?
levi nie
levinie001 at gmail.com
Wed Aug 1 00:45:17 EDT 2012
my code in Eclipse:
dict.fromkeys(['China','America'])
print "dict is",dict
output: dict is <type 'dict'>
my code in Python Shell:
dict.fromkeys(['China','America'])
output:{'America': None, 'China': None}
Output in Python Shell is what i wanna,but why not in Eclipse?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20120801/35eeec62/attachment.html>
More information about the Python-list
mailing list