textwrap.indent()
  • References/Python/Python/Text Processing

textwrap.indent(text, prefix, predicate=None) Add prefix to the beginning of selected lines in text.

2025-01-10 15:47:30
stringprep.in_table_a1()
  • References/Python/Python/Text Processing

stringprep.in_table_a1(code) Determine whether code is in tableA.1 (Unassigned code points in Unicode 3.2).

2025-01-10 15:47:30
readline.get_history_length()
  • References/Python/Python/Text Processing

readline.get_history_length() readline.set_history_length(length) Set or return the desired number of lines to save

2025-01-10 15:47:30
difflib.SequenceMatcher.ratio()
  • References/Python/Python/Text Processing

ratio() Return a measure of the sequences’ similarity as a float in the range [0, 1]. Where

2025-01-10 15:47:30
difflib.Differ.compare()
  • References/Python/Python/Text Processing

compare(a, b) Compare two sequences of lines, and generate the delta (a sequence of lines). Each

2025-01-10 15:47:30
textwrap.TextWrapper.drop_whitespace
  • References/Python/Python/Text Processing

drop_whitespace (default: True) If true, whitespace at the beginning and ending of every line (after wrapping but

2025-01-10 15:47:30
re.match.groups()
  • References/Python/Python/Text Processing

match.groups(default=None) Return a tuple containing all the subgroups of the match, from 1 up to however many groups are in

2025-01-10 15:47:30
stringprep.in_table_c11()
  • References/Python/Python/Text Processing

stringprep.in_table_c11(code) Determine whether code is in tableC.1.1 (ASCII space characters).

2025-01-10 15:47:30
readline.append_history_file()
  • References/Python/Python/Text Processing

readline.append_history_file(nelements[, filename]) Append the last nelements items of history to a file. The default

2025-01-10 15:47:30
string.Template.template
  • References/Python/Python/Text Processing

template This is the object passed to the constructor’s template argument. In general, you shouldn’t change it, but

2025-01-10 15:47:30