'this is "a test"'
Split these strings
["this", "is", "a", "test"] #Not this one ["this", "is", "a test"] #This!
I hope the quotation marks are protected together.
I'm trying to make a function myself, so I don't have a clue, so please guide me
Use shlex on the module shlex.split()/a>.
import shlex shlex.split('this is "a test"') #['this', 'is', 'a test']
544 Who developed the "avformat-59.dll" that comes with FFmpeg?
596 /usr/bin/google-chrome:symbol lookup error:/usr/bin/google-chrome: undefined symbol:gbm_bo_get_modifier
549 Scrap text information after the "View More" button when searching in the Yahoo! News search window
639 When building Fast API+Uvicorn environment with PyInstaller, console=False results in an error
968 In Java servlet, when SHA-256 sends WW-Authenticate header for digest authentication, the client does not return the result.
© 2024 OneMinuteCode. All rights reserved.