📜  作业 6.5 python for everyone - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:58.328000             🧑  作者: Mango

代码示例1
text = "X-DSPAM-Confidence:    0.8475";
a= text.find(':')
b= text.find('5')
c= text[a+1:b+1]

d= float(c.lstrip())

print(d)