Python的官网是https://www.python.org判断该网址是否是以org结尾。
用这个判断
url.upper()[-3:]=='ORG'
>>> url = 'https://www.python.org'
>>> print(url.upper()[-3:]=='ORG')
True
```python
import re
url='https://www.python.org'
if re.match('*org$',url):
print('以org结尾')
```