[問題] python找html值消失

看板Python作者時間9年前 (2016/07/04 12:57), 編輯推噓2(201)
留言3則, 2人參與, 最新討論串1/1
各位大大大家好,我現在剛學python想用他來抓網頁裡面一個值並顯示出來 \/1234\/2\/93"," 這是其中找值的部分 foundAbc= re.search('2\\\(?P<abc>.+?)"', respHtml); print "foundAbc=",foundAbc; if(foundAbc): abc=foundAbc.group("abc"); print "abc=",abc; 我只想要顯示93 但是他卻顯示 \/1234\/2\/93 請問這樣我要怎麼改呢? -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 101.8.211.146 ※ 文章網址: https://www.ptt.cc/bbs/Python/M.1467608265.A.4F7.html

07/04 13:28, , 1F
07/04 13:28, 1F

07/04 13:32, , 2F
07/04 13:32, 2F

07/04 15:42, , 3F
有了,感謝樓上幫忙
07/04 15:42, 3F
文章代碼(AID): #1NUUp9Jt (Python)