array Merge two lists of integers and return the result as an integer array using the array module. 2024-11-30 15:04:47 Function 14 views
random, string This function generates a random string of specified length, composed of uppercase and lowercase letters and digits. 2024-11-30 15:04:46 Generate random strings 10 views
random, string Generates a random string of specified length, composed of letters and digits. 2024-11-30 15:04:46 Function 10 views
os, zipfile, datetime This function compresses the specified file into a zip format and returns the name of the generated zip file and the file modification time. 2024-11-30 15:04:46 File compression 11 views
os, zipfile, pathlib This function compresses all files in the specified directory into a zip file and outputs it to the specified path. 2024-11-30 15:04:46 File compression 13 views
List comprehension, built-in sorting method, dictionary This function accepts a list of dictionaries as input and sorts the list based on the value of a specified key in each dictionary. If the specified key does not exist, an empty string is returned. 2024-11-30 15:04:45 Sort function 13 views
os, re, string, random, json This function generates a random string, gets the file size, reads the content of a file, replaces all occurrences in the text, sorts a list by length, generates a password, validates an email, gets a random item from a list, and checks if an object is serializable to JSON. 2024-11-30 15:04:45 Function 10 views
random, string This function generates a random string of specified length, composed of letters and digits. 2024-11-30 15:04:45 Generate random strings 11 views
zipfile This function merges files from two lists into a single ZIP file. Files from the first list are used as the source files, and their corresponding names from the second list will be used as the names in the compressed file. 2024-11-30 15:04:44 File processing 12 views
os, zipfile This function zips two files into a single zip file. 2024-11-30 15:04:44 Function 10 views