![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python笔记
ifui
这个作者很懒,什么都没留下…
展开
-
window python提示ModuleNotFoundError: No module named 'requests'的解决办法
在window IDLE的python开发环境中,提示错误 原因是无法找到requests这个模块 window python提示ModuleNotFoundError: No module named 'requests'的解决办法 sublime python提示ImportError: No module named requests原创 2018-10-22 09:11:23 · 10581 阅读 · 2 评论 -
python的dict/tuple/list/string相互转换
字典(dict) dict = {‘name’: ‘Zara’, ‘age’: 7, ‘class’: ‘First’} 1.1 字典——字符串 返回: print type(str(dict)), str(dict) 1.2 字典——元组 返回:(‘age’, ‘name’, ‘class’) print tuple(dict) 1.3 字典——元组 返回:(7, ‘Zara’, ‘F...转载 2018-11-30 19:23:56 · 467 阅读 · 0 评论