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

textwrap.fill(text, width=70, **kwargs) Wraps the single paragraph in text, and returns a single string containing

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

match.groupdict(default=None) Return a dictionary containing all the named subgroups of the match, keyed by the subgroup

2025-01-10 15:47:30
re.regex.pattern
  • References/Python/Python/Text Processing

regex.pattern The pattern string from which the RE object was compiled.

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

stringprep.map_table_b3(code) Return the mapped value for code according to tableB.3 (Mapping for case-folding used

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

readline.read_init_file([filename]) Execute a readline initialization file. The default filename is the last filename used.

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

regex.sub(repl, string, count=0) Identical to the sub() function, using the compiled pattern.

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

readline.get_history_item(index) Return the current contents of history item at index. The item index is one-based

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

match.expand(template) Return the string obtained by doing backslash substitution on the template string template,

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

difflib.ndiff(a, b, linejunk=None, charjunk=IS_CHARACTER_JUNK) Compare a and b (lists of strings); return

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

set_seq1(a) Set the first sequence to be compared. The second sequence to be compared is not changed.

2025-01-10 15:47:30