摘要: 1. 内置函数 1.1 dir 1.2 help 2. math 阅读全文
posted @ 2020-03-09 23:44 douzujun 阅读(258) 评论(0) 推荐(0) 编辑
摘要: # -*- coding: utf-8 -*- from os.path import isdir, join from os import listdir AllLines = [] # 保存所有代码行 NotRepeatedLines = [] # 保存非重复的代码行 file_num = 0 阅读全文
posted @ 2020-03-09 22:18 douzujun 阅读(286) 评论(0) 推荐(0) 编辑
摘要: import difflib A = open('./file/file01.txt', 'r') B = open('./file/file02.txt', 'r') contextA = A.read() contextB = B.read() s = difflib.SequenceMatch 阅读全文
posted @ 2020-03-09 20:43 douzujun 阅读(4291) 评论(0) 推荐(0) 编辑