看板 Programming 關於我們 聯絡資訊
現在資料讀進來也分割後的結果是 ['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
mars90226:可以把它取出來在split? 或者用Regex 140.112.30.133 04/16 16:10
MOONRAKER:regex看來應該比較容易 118.163.12.174 04/16 17:28