回答編集履歴
2
間違い
answer
CHANGED
@@ -10,7 +10,7 @@
|
|
10
10
|
import site
|
11
11
|
print(site.getsitepackages())
|
12
12
|
```
|
13
|
-
で出てくるディレクトリの下の`requests
|
13
|
+
で出てくるディレクトリの下の`requests/__init__.py`を指します。
|
14
14
|
|
15
15
|
----
|
16
16
|
|
1
追記
answer
CHANGED
@@ -10,4 +10,13 @@
|
|
10
10
|
import site
|
11
11
|
print(site.getsitepackages())
|
12
12
|
```
|
13
|
-
で出てくるディレクトリの下の`requests.__init__.py`を指します。
|
13
|
+
で出てくるディレクトリの下の`requests.__init__.py`を指します。
|
14
|
+
|
15
|
+
----
|
16
|
+
|
17
|
+
ファイルの在処が分かったのなら直に見て`get`が存在するか見てみましょう。
|
18
|
+
[https://github.com/psf/requests/blob/v2.24.0/requests/__init__.py#L123](https://github.com/psf/requests/blob/v2.24.0/requests/__init__.py#L123)
|
19
|
+
```python
|
20
|
+
from .api import request, get, head, post, patch, put, delete, options
|
21
|
+
```
|
22
|
+
があるはずですが。
|