字典的索引可以使用许多不同类型的数据,不只是整数。字典的索引被称为“键”,键及其关联的值称为“键—值”对,在代码中,字典输入时带花括号{}。5.1.1 keys()、values()和items()方法>>> spam = {'color':'red','age':42} >>> for i in spam.values(): print (i)red 42 >>> list(spam.keys())['color',...【阅读全文】
linux下 安装Pip后,使用Pip安装包时报错:点击(此处)折叠或打开-bash-4.1$ pip install requests --trusted-host mirrors.aliyun.comWARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.Coll...【阅读全文】