请问一下python正则表达式,split怎么有这么多None?

python正则表达式,split怎么有这么多None?


一只名叫tom的猫
浏览 1209回答 4
4回答

精慕HU

i = 0; i < tmp.length; i++) {if (tmp[i].indexOf("]") != -1) {HashMap<String, String> tb = new HashMap<String, String>();tb.put("list", tmp[i]);aap.add(tb);}}SpecialAdapter sa = new SpecialAdapter(this, aap, R.layout.listcontent,new String[] { "list" }, new int[

慕姐4208626

s = 'Hello!This?Is!What?I!Want'for i in ('!', '?'):s = s.replace(i,' ')list1 = s.split()list1 = [i for i in list1 if i]
打开App,查看更多内容
随时随地看视频慕课网APP