a=input("Enter the value ") for i in a: if a[i]==(" "): print("Space is at position", i)
我正在尝试计算给定字符串中的空格数,但是我的程序无法正常工作。
python
python ×1