题解 | #参数解析#
参数解析
https://www.nowcoder.com/practice/668603dc307e4ef4bb07bcd0615ea677
s = input()
res = []
temp = ""
i = 0
while i < len(s):
if s[i] == " ":
res.append(temp)
temp = ""
elif s[i] == '"':
i += 1
while s[i] != '"':
temp += s[i]
i += 1
else:
temp += s[i]
i += 1
res.append(temp)
print(len(res))
print("\n".join(res))