text = "X-DSPAM-Confidence: 0.8475"
zro = text.find('0')
print(float(text[zro:]))
결과
'모두를 위한 Python 특화과정 > 20171047 김동훈' 카테고리의 다른 글
python 데이터 구조-3 (0) | 2022.07.27 |
---|---|
python 데이터 구조-2 (0) | 2022.07.27 |
Programming for Everybody (Getting Started with Python)-7 (0) | 2022.07.19 |
Programming for Everybody (Getting Started with Python)-6 (0) | 2022.07.19 |
Programming for Everybody (Getting Started with Python)-5 (0) | 2022.07.19 |