随笔分类 - python精彩操作笔记
此处记录笔者收集的python经典操作
摘要:需求:使用pip安装pandas pip install pandas #cmd安装命令 问题: ERROR: Exception: Traceback (most recent call last): 解决方法: pip --default-time=200 install pandas 效果:
阅读全文
摘要:第一种:使用分片,使用字符串、列表 result = s[::-1] 第二种:使用列表的reverse方法,适用于列表 li =['b', 'c', 'f', 4, 5, 6] a = list(reversed(li)) print (a) 输出: [6, 5, 4, 'f', 'c', 'b']
阅读全文

浙公网安备 33010602011771号