会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
巧乐兹
博客园
首页
新随笔
联系
订阅
管理
2018年12月16日
一系列令人惊讶的Python代码段和鲜为人知的功能
摘要: 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)
2018年11月24日
hmac模块
摘要: #服务端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)
公告