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?
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to