摘要: 1.后代选择器 /*后代选择器*/ div span { /*div后代所有的span*/ color: red; } 2.儿子选择器 /*儿子选择器*/ div>span { /*div下一级的后代中的span*/ color: red; } 3.毗邻选择器 /*毗邻选择器*/ div+span 阅读全文
posted @ 2023-10-09 21:05 wellplayed 阅读(12) 评论(0) 推荐(0) 编辑
摘要: 1.id选择器 /*id选择器*/ #d1 { /*找到id是d1的标签*/ color: green; } 2.类选择器 /*类选择器*/ .c1 { /*找到class值里包含c1的标签*/ color: red; } 3.元素(标签选择器) /*(元素)标签选择器*/ span { /*找到所 阅读全文
posted @ 2023-10-09 20:53 wellplayed 阅读(16) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(7) 评论(0) 推荐(0) 编辑
摘要: 1.升序排序 select * from xxx order by 字段 2.降序排序 select * from xxx order by 字段 desc 阅读全文
posted @ 2023-10-09 16:43 wellplayed 阅读(28) 评论(0) 推荐(0) 编辑
摘要: # 查询学生表中所有数据 并且只取第一条数据SELECT * FROM student LIMIT 1 阅读全文
posted @ 2023-10-09 16:37 wellplayed 阅读(117) 评论(0) 推荐(0) 编辑
摘要: 方法一:先登录MySQL 命令框输入: set password for 用户名@localhost = password('新密码'); 方法二:使用mysqladmin # 该方法不需要登录 命令框输入: mysqladmin -u用户名 -p旧密码 password 新密码 阅读全文
posted @ 2023-09-26 17:23 wellplayed 阅读(51) 评论(0) 推荐(0) 编辑
摘要: https://idea.medeming.com/ 阅读全文
posted @ 2023-09-23 19:23 wellplayed 阅读(19) 评论(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 阅读(4) 评论(0) 推荐(0) 编辑
摘要: win10除了系统软件,其他应用软件都打不开了 阅读全文
posted @ 2023-09-19 21:10 wellplayed 阅读(118) 评论(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 阅读(8) 评论(0) 推荐(0) 编辑