Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
shlex.split() を使用するときに、「スペースを含む値」の周りの引用符を保持するにはどうすればよいですか?
s = "SOME_VAR=\"value with spaces\" VAR2=value2" shlex.split(s) ['SOME_VAR=value with spaces', 'VAR2=value2']
ありがとうございました