回答編集履歴

1

コードが動かなかった

2019/01/05 03:52

投稿

YouheiSakurai
YouheiSakurai

スコア6142

test CHANGED
@@ -20,11 +20,13 @@
20
20
 
21
21
 
22
22
 
23
- with wrap_socket(closing(create_connection(("qiita.com", 443)))) as s:
23
+ with closing(create_connection(("qiita.com", 443))) as s:
24
24
 
25
- s.send(req)
25
+ ss = wrap_socket(s)
26
26
 
27
+ ss.send(req)
28
+
27
- print(s.recv(1024).decode())
29
+ print(ss.recv(1024).decode())
28
30
 
29
31
  ```
30
32