09 2023 档案

摘要:方法一:先登录MySQL 命令框输入: set password for 用户名@localhost = password('新密码'); 方法二:使用mysqladmin # 该方法不需要登录 命令框输入: mysqladmin -u用户名 -p旧密码 password 新密码 阅读全文
posted @ 2023-09-26 17:23 wellplayed 阅读(71) 评论(0) 推荐(0) 编辑
摘要:https://idea.medeming.com/ 阅读全文
posted @ 2023-09-23 19:23 wellplayed 阅读(31) 评论(0) 推荐(0) 编辑
摘要:def get_code(n=4): # 默认生成4位 # 定义一个空字符串 code = '' for i in range(n): # 将生成的随机整数转化为字符串 random_int = str(random.randint(0, 9)) # 0-9之间的整数 # 将ASCII编码转为字母 阅读全文
posted @ 2023-09-21 14:49 wellplayed 阅读(14) 评论(0) 推荐(0) 编辑
摘要:win10除了系统软件,其他应用软件都打不开了 阅读全文
posted @ 2023-09-19 21:10 wellplayed 阅读(138) 评论(0) 推荐(0) 编辑
摘要:1、re.findall()ret = re.findall('a', 'aaa aaa')# 把匹配到的值以列表的形式返回# 没找到返回空列表 2、re.search()ret = re.search('a', 'aaa')# 只返回第一个值# 返回的是对象# 需要调用group方法输出# 没找到 阅读全文
posted @ 2023-09-17 15:01 wellplayed 阅读(12) 评论(0) 推荐(0) 编辑
摘要:# 想要获得‘kevin’ 这个字符串 user = 'kevin.json' username = user.strip('.json') print(username) 输出结果为:kevi # 改变user内容 user = 'kevinnnjjsson.json' 输出结果同样为:kevi 阅读全文
posted @ 2023-09-16 16:16 wellplayed 阅读(26) 评论(0) 推荐(0) 编辑
摘要:# 先定义md5_obj = hashlib.md5()#输入加密对象 # 加密对象必须为二进制md5_obj.update(b'helloworld') # 效果与上面相同,相当于字符串拼接起来md5_obj.update(b'hello')md5_obj.update(b'world') # 以 阅读全文
posted @ 2023-09-16 16:13 wellplayed 阅读(13) 评论(0) 推荐(0) 编辑
摘要:l.sort() def index(l, target_num): if len(l) == 0: print('没找到') return middle_index = len(l) // 2 if l[middle_index] < target_num: l_right = l[middle_ 阅读全文
posted @ 2023-09-16 16:12 wellplayed 阅读(10) 评论(0) 推荐(0) 编辑
摘要:for j in range(len(l)-1): for i in range(len(l)-1-j): if l[i] > l[i+1]: l[i],l[i+1]=l[i+1],l[i] print(l) 阅读全文
posted @ 2023-09-16 16:11 wellplayed 阅读(7) 评论(0) 推荐(0) 编辑
摘要:# 先导入包 from functools import wraps 外层下方使用: outer(func) @wraps(func) inner(*args, **kwargs) ... 阅读全文
posted @ 2023-09-16 16:09 wellplayed 阅读(11) 评论(0) 推荐(0) 编辑
摘要:python -m pip install --upgrade pip 阅读全文
posted @ 2023-09-16 16:07 wellplayed 阅读(9) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示