题解 | #参数解析#
参数解析
https://www.nowcoder.com/practice/668603dc307e4ef4bb07bcd0615ea677
# 2024年10月31日 周四 下午14:42 # xcopy /s c:\\ d:\\e # xcopy /s "C:\\program files" "d:\" s = input() ls = [] if '"' not in s: ls = s.split() else: s3 = s.split('"') #print(s3) for i in range(len(s3)): if i % 2 == 1: ls.append(s3[i]) else: ls += s3[i].split() print(len(ls)) for i in ls: print(i)