python正则匹配多种字符,进行分隔 在 2023年 3月 10日2023年 3月 10日 上张贴 由 fuyang发表回复 import re mass=float(re.split(',|=','add=2.22,')[1])#第一个参数是分隔符,第二个是原始字符串,输出为2.22