2020-08-13 12:00:20 +02:00
|
|
|
---
|
|
|
|
id: 5ea9997bbec2e9bc47e94db0
|
2021-07-15 13:04:11 +05:30
|
|
|
title: 创建一个 TCP 客户端
|
2020-08-13 12:00:20 +02:00
|
|
|
challengeType: 11
|
|
|
|
videoId: ugYfJNTawks
|
2021-10-03 12:24:27 -07:00
|
|
|
bilibiliIds:
|
|
|
|
aid: 933058124
|
|
|
|
bvid: BV16M4y1g7zL
|
|
|
|
cid: 409034338
|
2021-01-13 03:31:00 +01:00
|
|
|
dashedName: creating-a-tcp-client
|
2020-08-13 12:00:20 +02:00
|
|
|
---
|
|
|
|
|
2020-12-16 00:37:30 -07:00
|
|
|
# --question--
|
|
|
|
|
|
|
|
## --text--
|
|
|
|
|
2021-07-15 13:04:11 +05:30
|
|
|
哪种套接字对象方法让你设置客户端一次接受的最大数据量?
|
2020-12-16 00:37:30 -07:00
|
|
|
|
|
|
|
## --answers--
|
|
|
|
|
|
|
|
`.recv(1024)`
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
`.decode('ascii')`
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
`.connect(host, port)`
|
|
|
|
|
|
|
|
## --video-solution--
|
|
|
|
|
|
|
|
1
|
|
|
|
|