填空题

下列程序运行后,在键盘输入"apple and peach",则程序运行结果是()。
str=input("请输入一串字符串:")
flag=0
count=0
for c in str:
if c=="":
flag=0
else:
if flag==0:
flag=1
count=count+1
print(count)

【参考答案】

1