2樓:匿名使用者. re.match是從字串開頭進行匹配,re.search可以在字串任何位置匹配. import re. find=re.match(r"world$","hello world"). print(find).
確定! 回上一頁