|
|
发表于 2018-2-21 21:23:24
|
显示全部楼层
如果你使用pyCharm这个工具的话按下F1可以很容易的看到它的方法定义
class list() def append(self, object: _T) Inferred type: (self: list, object: TypeVar('_T')) -> None
L.append(object) -> None – append object to end
最后面明确的表示此方法没有返回值,None
如果有返回值的是长这个样子
def get(url, params=None, **kwargs) Inferred type: (url: Any, params: Any, kwargs: Dict[str, Any]) -> Response
Sends a GET request.
url:
URL for the new Request object.
params:
(optional) Dictionary or bytes to be sent in the query string for the Request.
**kwargs:
Optional arguments that request takes.
return:
(requests.Response) Response object |
|