MCPcopy Create free account
hub / github.com/OUCMachineLearning/OUCML / repl

Function repl

md2zh.py:3–5  ·  view source on GitHub ↗
(m)

Source from the content-addressed store, hash-verified

1
2import re
3def repl(m):
4 inner_word = m.group(1)
5 return '<br><br>$' + inner_word + '$<br><br>'
6with open('readme.md', 'r') as f_read:
7 text = f_read.readlines()
8 for k, item in enumerate(text):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected