# -*- coding: utf-8 -*-
import re
import requests
Title='区块链'
URL='http://library.stgvs.ntpc.edu.tw/webpac/PCbin/wc_opac.asp?WCI=WI_bookdq'
res=requests.post(URL,data={'BookName754':Title})
res.encoding = 'utf-8'
pattern='馆藏中无符合资料!'
if re.match(pattern,res.text):
print('没有这本书')
else:
print('有这本书')
其实图书馆是没有区块链这本书的
但re.match()却没比对出来
请问是哪里出了问题