标签:ast cal int uri python字典 for \n location 字典
# xiaoji
users = {
"aeinstein" : {
"first" : "albert",
"last":"einstein",
"localization":"princeton"
},
"mcurie":{
"first":‘marie‘,
"last":"cruie",
"localization":"paris"
}
}
for username,user_infor in users.items():
print("\nUsername: " + username)
full_name = user_infor["first"] + user_infor["last"]
location = user_infor["localization"]
print("\tFull name: " + full_name)
print("\tLocalization: "+ location)
标签:ast cal int uri python字典 for \n location 字典
原文地址:https://www.cnblogs.com/xiaoji123/p/9277473.html