摘要:
Python字典dict中由value查key 众所周知,字典dict最大的好处就是查找或插入的速度极快,并且不想列表list一样,随着key的增加越来越复杂。但是dict需要占用较大的内存空间,换句话说,字典dict是以空间换速度。详细请见如下示例: # student = {'小萌': '100 阅读全文
posted @ 2018-04-22 03:08
xxxxxxxx1x2xxxxxxx
阅读(4276)
评论(0)
推荐(0)