《Python编程:从入门到实践》字典编辑实践

《Python编程:从入门到实践》字典编辑实践_第1张图片
6-1

Sunjichen = {
    "first_name" : "Sun",
    "last_name" : "jichen",
    "city" : "Dezhou",
    "age" : "19",
    }
print(Sunjichen)

6-2

numbers = {
    'sunjichen' : '9',
    'lihanpeng' : '8',
    'xiaominghao' : '7',
    'zhangenbo' : '6',
    'zhoutao' : '5',
    }

6-3

words = {
    'list' : '列表',
    'if' : '判断',
    'elif' : '判断',
    'else' : '判断',
    'for' : '循环',
    }
print("\n" + 'list means ' + words['list'])
print("\n" + "if means " + words['if'])

你可能感兴趣的:(《Python编程:从入门到实践》字典编辑实践)