Python常见笔试题 关于字符串 #有如下字符串,要求编码输出其中的:shuidi l = ‘welcome to shui&di’ import re l = 'welcome to shui&di' newl= re.search('welcome to (.*?)&(.*)', l) print(newl.group(1)+ newl.group(2))