有没有人能帮我找出下面代码的问题: import re
class RegexTest(object):
def regex_test(self, reg, string):
reg_pattern = repr(reg)[1:-1]
match = re.search(reg_pattern, string)
if (match is not None):
return match.group(0)
else:
return None
tes
我从这里复制并运行了我的ubuntu18.04命令,但是得到了一个错误,如:
$ bash -c “$(wget -q -O – https://linux.kite.com/dls/linux/current)”
bash: “”: command not found
$ type quote
quote is a function
quote ()
{
local quoted=${1//\'/\'\\\'\'};
printf "'%s'" "$quoted"
}
对错误有什么建议吗?