favorite_places={'小明':['上海','北京','深圳'],'小王':['上海','南京'],'小张':['上海','南京']}
for name,favorite_place in favorite_places.items():
print('somewhere of 'name +' liking are'+ ' : ')
for fa_place in favorite_place:
print(fa_place)
提示: File "C:\Users\Xiaofei\Desktop\python从入门到实践练习题\6\6-8.py", line 3
favorite_places={'小明':['上海','北京','深圳'],'小王':['上海','南京'],'小张':['上海','南京']}
^
SyntaxError: invalid character in identifier
[Finished in 0.4s]
产品经理不是经理
相关分类