import re
keyword = 'jesus'
re.search(r'\D*keyword', 'jesuscrhist')
我如何以'jesus'编译而不是'keyword'的方式将变量放在那里?
换句话说,我该如何组装:
keyword = "foobar"
some_string = "What's the difference between rebar and keyword?"
这样
assert(some_string == "What's the difference between rebar and fubar?")