05 2021 档案

摘要:#md5,解密不了import hashlibs="wendy"print(s.encode())#bytes,把字符串变成字节类型m=hashlib.md5(s.encode())result=m.hexdigest()print(result)#加盐salt='234SSSS_@###'afte 阅读全文
posted @ 2021-05-28 02:47 wxy90 阅读(65) 评论(0) 推荐(0)
摘要:1、random.random random.random()用于生成一个0到1的随机符小数: 0 <= n < 1.0 random.random() 2、random.uniform random.uniform的函数原型为:random.uniform(a, b),用于生成一个指定范围内的随机 阅读全文
posted @ 2021-05-18 23:47 wxy90
摘要:#函数自己调用自己就是递归def test(): print("递归") test()test()def test1(): num=input("请输入").strip() if num%2==0: return num test1()test1() def is_float(s): s=str(s 阅读全文
posted @ 2021-05-12 00:12 wxy90 阅读(66) 评论(0) 推荐(0)
摘要:#解包,数组,元祖,字符串都可以,只要有下标msg = 'admin,123'username1=msg.split(',')[0]pwd1=msg.split(',')[1]# 可以合并成一行代码username,pwd=msg.split(',')l=[1,2,3]f,k,g=ll2=(1,2, 阅读全文
posted @ 2021-05-12 00:09 wxy90 阅读(56) 评论(0) 推荐(0)