摘要:
一、字典的定义 字典是一种key - value的数据类型;无序的,key值唯一,故去重。 1、查找 1 #字典查找 2 print('字典查找'.center(50,'-')) 3 print(info) 4 print(info['stu101']) #不存在报错 5 print(info.ge 阅读全文
posted @ 2018-08-29 11:06
104cz
阅读(1386)
评论(0)
推荐(0)
|
摘要:
一、字典的定义 字典是一种key - value的数据类型;无序的,key值唯一,故去重。 1、查找 1 #字典查找 2 print('字典查找'.center(50,'-')) 3 print(info) 4 print(info['stu101']) #不存在报错 5 print(info.ge 阅读全文
posted @ 2018-08-29 11:06
104cz
阅读(1386)
评论(0)
推荐(0)
摘要:
一、字符串常用方法 这里就不黏贴结果了。 阅读全文
posted @ 2018-08-29 09:34
104cz
阅读(96)
评论(0)
推荐(0)
|