对python中的字典进行遍历操作
a = {} a["bob"] = "beijing" a["tom"] = "shanghai" for key in a.keys(): print(a[key])