摘要: import shlex s = "I am Bill" ret = shlex.split(s) print(ret) # 同时可以用来去除字符串中的单双引号 s = "test '1234'" ret = shlex.split(s) print(ret) # 单双引号在中间也会被出掉 s = 阅读全文
posted @ 2019-06-30 20:44 码上测 阅读(2050) 评论(0) 推荐(0) 编辑