📜  计数十进制数python代码示例

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

代码示例1
>>> f = "7.2332"
>>> f[::-1].find('.')
4
>>> f = "7.20"
>>> f[::-1].find('.')
2