正则表达式 re.sub 出现sub() missing 1 required positional argument: ‘string‘
sub() missing 1 required positional argument: 'string'Sub()缺少1个必需的位置参数:'string' 我们需要检查一下格式是否正确 def sub(pattern, repl, string, count=0, flags=0): """Return the string obtained by replacing the leftmost non-overlapping occurrences of the ..
原创
2022-04-04 10:48:19 ·
3163 阅读 ·
0 评论