摘要: 删除归并 下标归并 阅读全文
posted @ 2018-07-24 19:09 睡觉了嘛 阅读(137) 评论(0) 推荐(0) 编辑
摘要: 加密 解密 阅读全文
posted @ 2018-07-24 14:17 睡觉了嘛 阅读(321) 评论(0) 推荐(0) 编辑
摘要: 1.归并 2.分割 阅读全文
posted @ 2018-07-24 12:02 睡觉了嘛 阅读(657) 评论(0) 推荐(0) 编辑
摘要: os.system("系统命令") 调用系统命令 os.listdir(地址) 扫描目录里面的文件。默认的是当前文件夹 返回一个列表 import os # os.listdir(地址) 扫描目录里面的文件。默认的是当前文件夹 print(os.listdir()) # 结果 #当前目录下的文件 [ 阅读全文
posted @ 2018-07-24 10:09 睡觉了嘛 阅读(121) 评论(0) 推荐(0) 编辑
摘要: import codecs # 导入文件 filepath = r"kaifangGood.txt" file = codecs.open(filepath,"rb","utf-8","ignore") #按照指定编码 mylist = file.readlines() # 返回一个list,读取到内存 file.close() print("文件导入成功") #C:\Users\Tsin... 阅读全文
posted @ 2018-07-24 09:45 睡觉了嘛 阅读(252) 评论(0) 推荐(0) 编辑
摘要: 结果 阅读全文
posted @ 2018-07-24 08:36 睡觉了嘛 阅读(88) 评论(0) 推荐(0) 编辑