problem is as follows, as seen in the python getting started manual, re.sub () replaces
I know the syntax of re.sub (regular string, replacement string, original string), but I don"t understand this
I also know that 1 is equivalent to re.search (). Group (1)
how does the above rule achieve the effect of removing weight?