字典基础用法
摘要:* 字典的无序的,key是唯一的 1.先创建一个字典: info = { 'stu1' : "one", 'stu2' : "two", 'stu3' : "three", } print(info) >打印整个info info['stu1'] >取出key值为stu1的值(one) 如果没有st
阅读全文
posted @ 2017-12-07 16:13
posted @ 2017-12-07 16:13