随笔 - 633,  文章 - 0,  评论 - 13,  阅读 - 48万
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
摘要: 代码: # 定义一个函数来处理文件 def process_file(src_filename, unique_filename): seen = set() duplicates = set() with open(src_filename, 'r', encoding='utf-8') as f 阅读全文
posted @ 2024-07-09 20:31 大话人生 阅读(36) 评论(0) 推荐(0) 编辑
摘要: 代码: def is_line_with_only_digits(line): # 检查一行是否只包含数字 return line.strip().isdigit() def process_file(input_file_path, output_file_path): with open(inp 阅读全文
posted @ 2024-07-09 14:10 大话人生 阅读(13) 评论(0) 推荐(0) 编辑
点击右上角即可分享
微信分享提示