作者darklimit ()
站内Programming
标题[问题] split 切割疑问?
时间Mon Apr 16 16:07:07 2012
现在资料读进来也分割後的结果是
['a', '00024241', '0', '0.625', 'wide_of_the_mark#1 wide#7', 'not on target;
"the kick was wide"; "the arrow was wide of the mark"; "a claim that was wide
of the truth" ']
如果我要再分割一次..
如何把mark 和wide 这两个字
与#号後的数字分别再切出来?
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.135.114.123
1F:→ mars90226:可以把它取出来在split? 或者用Regex 140.112.30.133 04/16 16:10
2F:→ MOONRAKER:regex看来应该比较容易 118.163.12.174 04/16 17:28