随笔分类 -  python精彩操作笔记

此处记录笔者收集的python经典操作
摘要:需求:使用pip安装pandas pip install pandas #cmd安装命令 问题: ERROR: Exception: Traceback (most recent call last): 解决方法: pip --default-time=200 install pandas 效果: 阅读全文
posted @ 2019-12-16 00:39 弈虫 阅读(1591) 评论(0) 推荐(0)
摘要:第一种:使用分片,使用字符串、列表 result = s[::-1] 第二种:使用列表的reverse方法,适用于列表 li =['b', 'c', 'f', 4, 5, 6] a = list(reversed(li)) print (a) 输出: [6, 5, 4, 'f', 'c', 'b'] 阅读全文
posted @ 2019-12-07 20:31 弈虫 阅读(490) 评论(0) 推荐(0)