[問題] split 切割疑問?

看板Programming作者時間13年前 (2012/04/16 16:07), 編輯推噓0(002)
留言2則, 2人參與, 最新討論串1/1
現在資料讀進來也分割後的結果是 ['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

04/16 16:10, , 1F
可以把它取出來在split? 或者用Regex
04/16 16:10, 1F

04/16 17:28, , 2F
regex看來應該比較容易
04/16 17:28, 2F
文章代碼(AID): #1FYzCkOj (Programming)
文章代碼(AID): #1FYzCkOj (Programming)