随笔分类 -  数据处理

字符串、列表等数据类型切割排序处理
摘要:数据透视表 阅读全文
posted @ 2020-11-12 10:35 yescarf 阅读(620) 评论(0) 推荐(0) 编辑
摘要:docx模块 python在安装时,默认的编码是ascii,当程序中出现非ascii编码时,python的处理常常会报错UnicodeDecodeError: 'ascii' codec can't decode byte 0x?? in position 1: ordinal not in ran 阅读全文
posted @ 2020-04-17 15:08 yescarf 阅读(622) 评论(0) 推荐(0) 编辑
摘要:CSV模块的使用 #!/usr/bin/env python# -*- coding:utf-8 -*- import csvimport osprint(os.getcwd())os.chdir(r'C:\Users\yeweijian.scarfgw')print(os.listdir())c= 阅读全文
posted @ 2020-04-15 13:14 yescarf 阅读(768) 评论(0) 推荐(0) 编辑
摘要:enumerate函数的使用 lista = ['xiawang\n','小王\n','135\n'] b= enumerate(lista) print(b) print(list(b)) #enumerate 枚举 a=[temp+'#'+str(index)for index,temp in 阅读全文
posted @ 2020-04-15 13:11 yescarf 阅读(144) 评论(0) 推荐(0) 编辑
摘要:列表处理列表拆分 阅读全文
posted @ 2020-04-15 13:05 yescarf 阅读(1127) 评论(0) 推荐(0) 编辑
摘要:字符串修改 阅读全文
posted @ 2020-04-10 09:58 yescarf 阅读(173) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示