On 8/1/2012 12:45 AM, levi nie wrote:
my code in Eclipse:
dict.fromkeys(['China','America'])
In Eclipse, I presume this prints nothing, as is normal for an editor.
print dict is,dict
output: dict is type 'dict'
This is red herring. The shell does the same with that line. It is not
On 08/01/2012 12:45 AM, levi nie wrote:
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
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?
On 08/01/2012 11:26 AM, Prasad, Ramit wrote:
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
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?
--