小编Har*_*ong的帖子

如何在字符串中查找浮点数 - Python?

我想找到使用Python 3出现在字符串中的第一个浮点数.

我查看了其他类似的问题,但我无法理解它们,当我尝试实施它们时,它们不适合我的情况.

一个示例字符串

I would like 1.5 cookies please

python floating-point python-3.x

2
推荐指数
2
解决办法
3934
查看次数

标签 统计

floating-point ×1

python ×1

python-3.x ×1