No packages Converts a string into a dictionary of ASCII code values. 2024-11-30 15:12:44 Function 3 views
Python built-in libraries Define a custom function xxx that accepts two arguments arg1 and arg2 and returns their sum. 2024-11-30 15:12:43 Function 3 views
itertools This function takes any number of iterable objects as input and returns a list where elements are taken from each of the iterables. If the iterables are of different lengths, the missing values in shorter iterables are filled with fillvalue. The iterator stops when the shortest iterable is exhausted. 2024-11-30 15:12:42 Function 3 views
Built-in library This function merges the binary content of two files and writes the result to a new file. 2024-11-30 15:12:42 File operation 3 views
zipfile This function takes a list of files and a name for the output zip file, and compresses all files in the list into the specified zip file. 2024-11-30 15:12:42 File compression 4 views
itertools (built-in library) Custom function that combines a variable number of list arguments into a new list, filling the shorter lists with a specified fillvalue if necessary. 2024-11-30 15:12:41 Function 3 views
zip, while loop, iterator, generator The function combines multiple iterable objects into an iterator, filling with fillvalue if an iterable runs out, until all iterable objects are exhausted. 2024-11-30 15:12:41 Function 8 views
List, Sorting This function takes two lists as arguments, and the elements in the first list will be sorted according to the order of the corresponding elements in the second list. 2024-11-30 15:12:41 Function 3 views
random, math, string, datetime, re, collections, hashlib, unittest, copy, os, sys, io The function generates a random string, calculates the square sum of two parameters, gets the current time, checks if the string contains only letters, counts the occurrences of characters in the string, generates the MD5 hash of the string, performs a unit test, copies an object, generates a file path, writes the string to the standard output, and writes the string to a file object in memory. 2024-11-30 15:12:41 Code function 3 views
set This function is used to find two numbers in an array that add up to a target value. If such numbers are found, it returns them as a list; otherwise, it returns None. 2024-11-30 15:12:40 Function 8 views