Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私はこの文字列を持っています:
s = "mage('Images/mpins/pin5_Jul1.png', new"
これは私のパターンです:
patt_img = r'\w+.png'
なぜ
re.findall(patt_img,s)
戻る
['pin5_Jul1.png']
しかし、match戻りますNoneか?
match
None
m = re.match(patt_img,s) >>> type(m) <type 'NoneType'>`