摘要: 1. >>> a = "some_string" >>> id(a) 140420665652016 >>> id("some" + "_" + "string") # Notice that both the ids are same. 140420665652016 2. >>> a = "wt 阅读全文
posted @ 2018-12-16 22:01 巧乐兹丫 阅读(1314) 评论(0) 推荐(0)
摘要: #服务端import socket import os import socket import hmac secrest_key=b'egg' sk=socket.socket() sk.bind(('127.0.0.1',8080,)) sk.listen() def check_conn(conn,): msg=os.urandom(32) #生成随机 conn.se... 阅读全文
posted @ 2018-11-24 22:55 巧乐兹丫 阅读(188) 评论(0) 推荐(0)