📅  最后修改于: 2022-03-11 14:48:37.546000             🧑  作者: Mango
import requests
request = requests.get('http://www.example.com')
if request.status_code == 200:
print('Web site exists')
else:
print('Web site does not exist')