上一页 1 ··· 19 20 21 22 23
摘要: 1.无序列表 <ul type="square"> <li>第一项</li> <li>第二项</li> <li>第三项</li> <li>第四项</li> </ul> 2.有序列表 <ol type="1" start="5"> <li>111</li> <li>222</li> <li>333</ 阅读全文
posted @ 2023-10-09 18:50 wellplayed 阅读(12) 评论(0) 推荐(0)
摘要: 1.升序排序 select * from xxx order by 字段 2.降序排序 select * from xxx order by 字段 desc 阅读全文
posted @ 2023-10-09 16:43 wellplayed 阅读(61) 评论(0) 推荐(0)
摘要: # 查询学生表中所有数据 并且只取第一条数据SELECT * FROM student LIMIT 1 阅读全文
posted @ 2023-10-09 16:37 wellplayed 阅读(189) 评论(0) 推荐(0)
摘要: 方法一:先登录MySQL 命令框输入: set password for 用户名@localhost = password('新密码'); 方法二:使用mysqladmin # 该方法不需要登录 命令框输入: mysqladmin -u用户名 -p旧密码 password 新密码 阅读全文
posted @ 2023-09-26 17:23 wellplayed 阅读(78) 评论(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 阅读(15) 评论(0) 推荐(0)
摘要: win10除了系统软件,其他应用软件都打不开了 阅读全文
posted @ 2023-09-19 21:10 wellplayed 阅读(141) 评论(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 阅读(14) 评论(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 阅读(11) 评论(0) 推荐(0)
上一页 1 ··· 19 20 21 22 23