题解 | #参数解析#
参数解析
https://www.nowcoder.com/practice/668603dc307e4ef4bb07bcd0615ea677
s=input().split('"'),s的奇数项为""内的内容,直接输出,偶数项为""外的内容,切分后输出
s=input().split('"') res=[] for i in range(len(s)): if i%2==0: out=s[i].split() for i in range(len(out)): res.append(out[i]) else: res.append(s[i]) a=len(res) print(a) for i in range(a): print(res[i])