b9113fced86a32cad0d8 @ 2024-10-04 10:22:04
事故现场
源代码:
import socket
client_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
server_ip = 'cfc8522bc8db.ofalias.net'
server_port = 34006
client_socket.connect((server_ip, server_port))
message = input()
client_socket.send(message.encode('ascii'))
client_socket.close()
by b9113fced86a32cad0d8 @ 2024-10-04 10:42:16
@Gcc_Gdb_7_8_1 问题是我在正常代码前面导一个socket
还是AC啊?
by Gcc_Gdb_7_8_1 @ 2024-10-04 10:43:02
@b9113fced86a32cad0d8 ???
by Gcc_Gdb_7_8_1 @ 2024-10-04 10:43:26
什么意思?什么是正常代码?
by b9113fced86a32cad0d8 @ 2024-10-04 10:44:01
@Gcc_Gdb_7_8_1 就是能AC的代码
by Gcc_Gdb_7_8_1 @ 2024-10-04 10:46:22
@b9113fced86a32cad0d8 好像真的是
by b9113fced86a32cad0d8 @ 2024-10-04 10:47:28
@Gcc_Gdb_7_8_1 所以就是测评机没联网?
by Gcc_Gdb_7_8_1 @ 2024-10-04 10:52:49
@b9113fced86a32cad0d8 对,在 client_socket.connect((server_ip, server_port))
发送请求前的代码不会 RE,加上这句会 RE。
by Gcc_Gdb_7_8_1 @ 2024-10-04 10:53:41
证据1,证据2
by Gcc_Gdb_7_8_1 @ 2024-10-04 10:54:23
球关
by b9113fced86a32cad0d8 @ 2024-10-04 10:55:40
破案了!那么结此帖! @Gcc_Gdb_7_8_1 粉丝+1