题解 | 参数解析
st = input()
arr = list(st.split('"'))
res = []
for s in arr:
if '"' + s + '"' in st:
res.append(s)
else:
res += list(s.split())
print(len(res))
for s in res:
print(s)
st = input()
arr = list(st.split('"'))
res = []
for s in arr:
if '"' + s + '"' in st:
res.append(s)
else:
res += list(s.split())
print(len(res))
for s in res:
print(s)
相关推荐