上一页 1 2 3 4 5 6 7 8 9 10 ··· 49 下一页
摘要: 一、代码 from flask import Flask from flask_sqlalchemy import SQLAlchemy from sqlalchemy import desc class Config(object): ''' sqlalchemy 参数配置 ''' # 配置数据库 阅读全文
posted @ 2023-03-29 15:46 样子2018 阅读(81) 评论(0) 推荐(0) 编辑
摘要: 一、代码 from flask import Flask from flask_sqlalchemy import SQLAlchemy class Config(object): ''' sqlalchemy 参数配置 ''' # 配置数据库 SQLALCHEMY_DATABASE_URI = ' 阅读全文
posted @ 2023-03-29 14:39 样子2018 阅读(210) 评论(0) 推荐(0) 编辑
摘要: 一、解析列表 1、效果图 2、示例代码 <?php include_once 'parse.func.php'; $data = array( array( 'scode' => 2, 'link' => 'https://www.baidu.com', 'title' => '123', 'dat 阅读全文
posted @ 2023-02-16 15:27 样子2018 阅读(68) 评论(0) 推荐(0) 编辑
摘要: 一、swiper默认样式 1. width 100% 2. height 默认为 150px 3 .swiper高度无法实现由内容撑开 二、设置swiper高度 在默认情况下的高度为150px的轮播图不太好看,所以我们需要给它重新设置高度,如下: height:calc(750rpx * 原图的高度 阅读全文
posted @ 2023-02-09 10:32 样子2018 阅读(47) 评论(0) 推荐(0) 编辑
摘要: 一、效果图 全景列表 发布全景 预览全景 编辑全景 二、实例代码 index.php <?php /** * Created by PhpStorm. * User: Mr.Yang * Date: 2023/2/6 * Time: 13:51 * QQ: 2575404985 */ require 阅读全文
posted @ 2023-02-07 14:32 样子2018 阅读(177) 评论(0) 推荐(0) 编辑
摘要: 一、Photo Sphere Viewer 1、文档:https://photo-sphere-viewer.js.org/guide/ demo链接:https://pan.baidu.com/s/1UPOq17DJTCihNdmESMKMPg 提取码:v9n9 2、效果图 3、示例代码 <htm 阅读全文
posted @ 2023-02-03 10:31 样子2018 阅读(1527) 评论(0) 推荐(0) 编辑
摘要: 一、效果图 二、示例 <?php //获取日期 $now_year = date('Y'); $now_month = date('m'); $date1 = $date2 = array(); for ($i = 1; $i <= $now_month; $i++) { if ($i < 10) 阅读全文
posted @ 2023-01-10 10:32 样子2018 阅读(195) 评论(0) 推荐(0) 编辑
摘要: 一、创建项目 第一步:scrapy startproject lianhe 第二步:cd lianhe scrapy genspider product www.lhecn.com.cn 二、示例代码 start.py from scrapy import cmdline import os if 阅读全文
posted @ 2023-01-09 10:12 样子2018 阅读(25) 评论(0) 推荐(0) 编辑
摘要: 一、效果图 二、示例代码 1、items.py # -*- coding: utf-8 -*- # Define here the models for your scraped items # # See documentation in: # https://doc.scrapy.org/en/ 阅读全文
posted @ 2023-01-03 10:13 样子2018 阅读(71) 评论(0) 推荐(0) 编辑
摘要: 一、效果图 二、示例代码 <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title></title> 阅读全文
posted @ 2022-12-30 13:09 样子2018 阅读(123) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 49 下一页