题解 | #参数解析#
参数解析
https://www.nowcoder.com/practice/668603dc307e4ef4bb07bcd0615ea677
inData = list(input()) cmds = [] while inData: i = inData.pop(0) if i == ' ': continue c, stop = "", ' ' if i=='"': i = "" stop = '"' while i != stop: c += i if not inData: break i = inData.pop(0) cmds.append(c) print(len(cmds)) for i in cmds: print(i)