上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 52 下一页
摘要: 一、列表 # len(list)列表元素个数 # max(list)返回列表元素最大值 # min(list)返回列表元素最小值 # list(seq)将元组转换为列表 # list.append(obj)在列表末尾添加新的对象 # list.count(obj)统计某个元素在列表中出现的次数 # 阅读全文
posted @ 2022-10-10 12:16 样子2018 阅读(82) 评论(0) 推荐(0)
摘要: # clear() 清除字典。 # get() ​如果键存在于字典中,则返回该键的值。 # items()​ 返回字典中的键值对列表。 # keys() 返回字典中的键列表。 # values()​ 返回字典中的值列表。 # pop()​ 从字典中删除一个键,如果它存在,并返回它的值。如果存在于字典 阅读全文
posted @ 2022-10-10 12:11 样子2018 阅读(200) 评论(0) 推荐(0)
摘要: # 1、index(value, start, end):在区间查找value出现的位置索引。 # 2、count(value):计算元组中value元素出现的个数。 # index和count与字符串和列表中的用法相同 if __name__ == "__main__": t1 = ("1", 1 阅读全文
posted @ 2022-10-10 10:57 样子2018 阅读(63) 评论(0) 推荐(0)
摘要: 代码只能作为学习,请不要用于其他。 一、效果图 二、代码编写 1、items.py # -*- coding: utf-8 -*- # Define here the models for your scraped items # # See documentation in: # https:// 阅读全文
posted @ 2022-10-10 08:42 样子2018 阅读(159) 评论(0) 推荐(0)
摘要: 一、安装插件 npm i dplayer -S npm i hls.js -S 二、代码示例 <template> <view class="content"> <div id="dplayer" style="height: 450px; width: 800rpx;"></div> </view 阅读全文
posted @ 2022-09-22 16:33 样子2018 阅读(2027) 评论(0) 推荐(0)
摘要: 一、sqlite3封装 <?php class SQLiteDB extends SQLite3 { function __construct(){ try { //打开数据库文件 $this->open('./ccfcf4572e60f80522c1cf0f8e4b95c3.db'); }catc 阅读全文
posted @ 2022-09-16 10:49 样子2018 阅读(377) 评论(0) 推荐(0)
摘要: 一、注意 当设置speed太小时会有卡顿,建议设置为6000 二、效果图 三、代码 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>swiper4 无缝轮播处理</title> <link rel="styl 阅读全文
posted @ 2022-09-03 11:26 样子2018 阅读(1251) 评论(0) 推荐(0)
摘要: 一、项目目录 二、配置.htaccess 其中主要的是.htaccess文件配置 <IfModule mod_rewrite.c> if (!-f $request_filename){ set $rule_0 1$rule_0; } if ($rule_0 = "1"){ rewrite ^/([ 阅读全文
posted @ 2022-08-30 10:32 样子2018 阅读(132) 评论(0) 推荐(0)
摘要: 一、代码 /** * @throws \think\Exception */ protected function getDb(){ if(!$this->my_db){ $this->my_db = Db::connect(config('db2')); } } config.php 阅读全文
posted @ 2022-08-27 14:42 样子2018 阅读(195) 评论(0) 推荐(0)
摘要: TreeTable.js下载 链接:https://pan.baidu.com/s/1lLBge_4MSSViLztwTnPfkA 提取码:whj3 一、效果图 二、前端代码 {include file='common/header'} <div class="layui-fluid"> <div 阅读全文
posted @ 2022-08-01 10:52 样子2018 阅读(3668) 评论(0) 推荐(0)
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 52 下一页