Replies: 6 comments 6 replies
-
randomrandom.int(min, max)
random.bin
random.shuffle("text")
random.shuffle(["apple", "pineapple"])
random.choice(["pineapple", "apple"])
|
Beta Was this translation helpful? Give feedback.
-
ASCIIASCII.to_binary(char)
ASCII.to_decimal(binary)
ASCII.to_character(decimal)
ASCII.to_hexadecimal(char)
ASCII.to_character_from_hex(hexadecimal)
|
Beta Was this translation helpful? Give feedback.
-
TimeTime.current_time()
Time.current_date()
Time.timestamp()
Time.format_time(time_object, format_str)
Time.time_difference(start_time, end_time)
|
Beta Was this translation helpful? Give feedback.
-
Math Modulemath.pi
math.e
math.sqrt(x)
math.pow(x, y)
math.exp(x)
math.log(x, base)
math.sin(x)
math.cos(x)
math.tan(x)
math.degrees(x)
math.radians(x)
math.ceil(x)
math.floor(x)
math.factorial(x)
math.gcd(a, b)
math.isclose(a, b, rel_tol=1e-09, abs_tol=0.0)
math.isinf(x)
math.isnan(x)
math.trunc(x)
|
Beta Was this translation helpful? Give feedback.
-
JSON Modulejson.dumps(obj, *, skipkeys=False, ensure_ascii=True, check_circular=True, allow_nan=True, cls=None, indent=None, separators=None, default=None, sort_keys=False, **kw)
json.loads(s, *, encoding=None, cls=None, object_hook=None, parse_float=None, parse_int=None, parse_constant=None, object_pairs_hook=None, **kw)
json.dump(obj, fp, *, skipkeys=False, ensure_ascii=True, check_circular=True, allow_nan=True, cls=None, indent=None, separators=None, default=None, sort_keys=False, **kw)
json.load(fp, *, cls=None, object_hook=None, parse_float=None, parse_int=None, parse_constant=None, object_pairs_hook=None, **kw)
|
Beta Was this translation helpful? Give feedback.
-
re Modulere.compile(pattern, flags=0)
re.match(pattern, string, flags=0)
re.search(pattern, string, flags=0)
re.findall(pattern, string, flags=0)
re.finditer(pattern, string, flags=0)
re.sub(pattern, repl, string, count=0, flags=0)
re.split(pattern, string, maxsplit=0, flags=0)
re.IGNORECASE
re.MULTILINE
re.DOTALL
re.VERBOSE
|
Beta Was this translation helpful? Give feedback.
-
abc
if message has this emoji then its added: "🚀"
Beta Was this translation helpful? Give feedback.
All reactions