📌  相关文章
📜  计算数字中零的个数python代码示例

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

代码示例1
# credit to Stack Overflow user in source link

>>> def count_zeros(number):
...     return str(number).count('0')
... 
>>> count_zeros(49690101904335902069)
5