import re
data2 = "45/22.5 mg/kg""""获取整数或小数"""
d2 = re.compile("\d+[.\d]*")
result = re.findall(d2,data2)