The packages and technologies used in this code[English] This function is used to set the font size of a string, especially when using Arial font in a Windows environment. 2024-11-30 15:09:24 Function 4 views
zipfile, os This function uses the zipfile module to create a ZIP file and adds the specified file to the ZIP file. 2024-11-30 15:09:24 File operation 3 views
os, shutil, math, datetime, hashlib, json, re This function creates a directory, copies a file to the new directory, changes file permissions, generates a random string, gets the current time, calculates the square root of a number, generates a hash of the file, reads the file content, finds content using regular expressions, and converts these data into JSON format. 2024-11-30 15:09:24 Code function 4 views
random, string This function generates a random string of a specified length using a set of characters that includes both letters and digits. 2024-11-30 15:09:23 Function 5 views
os, zipfile, json, datetime This function compresses all files in the specified directory into a zip file and returns the timestamp when the compression is completed. 2024-11-30 15:09:23 File operation 6 views
itertools This function uses the zip_longest function from the itertools module to handle iterables of different lengths. When the lengths of the iterables are not equal, it fills the missing parts with the fillvalue. 2024-11-30 15:09:22 Function 3 views
Sorting This function takes a list as input and returns a list sorted in descending order. 2024-11-30 15:09:22 Sort function 3 views
hashlib This function takes a filename as input, calculates its hash value using the MD5 algorithm, and returns a hexadecimal string. This is typically used to verify the integrity of a file. 2024-11-30 15:09:21 Tool functions 5 views
Built-in libraries This function returns a list of all prime numbers less than or equal to the given number n. 2024-11-30 15:09:21 Function 4 views