标签:python
>>> import requests
>>> hasattr(requests,‘get‘)
True
>>> hasattr(requests,‘aaa‘)
False
说明requests模块有get方法,没有aaa方法
本文出自 “dba天空” 博客,请务必保留此出处http://9425473.blog.51cto.com/9415473/1766087
标签:python
原文地址:http://9425473.blog.51cto.com/9415473/1766087