for first inrange(ord('s'), ord('t')): for second inrange(ord('a'), ord('z') + 1): for third inrange(ord('a'), ord('z') + 1): file_name = f"{chr(first)}{chr(second)}{chr(third)}" file_list.append(file_name) iflen(file_list) == 182: return file_list
withopen(output_file, 'wb') as outfile: for file_name in file_list: if os.path.exists(file_name): withopen(file_name, 'rb') as infile: outfile.write(infile.read()) print(f"拼接文件: {file_name}") else: print(f"文件未找到: {file_name}")
for k in k_range: str3 = "" for i inrange(len(str1)): if str1[i] == "j": str3 += chr(ord(str2[i]) - 2) else: str3 += chr(ord(str2[i]) + k) results.append(f"k={k}: {str3}")