📜  using-len-for-text-but-discarding-spaces-in-the-count - Python 代码示例

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

代码示例1
>>> full_name = "John DOE"
>>> len(full_name) - full_name.count(' ')
7