当前位置:首页>python>量化系列(八十五): 量化可视化教程:Python 导入股票历史数据生成带成交量 K 线图源码分享

量化系列(八十五): 量化可视化教程:Python 导入股票历史数据生成带成交量 K 线图源码分享

  • 2026-07-06 16:51:22
量化系列(八十五): 量化可视化教程:Python 导入股票历史数据生成带成交量 K 线图源码分享

一. 认真学完这一章节,你可以做什么?

上一章节,我们学习了获取股票的历史数据,但历史数据是表格形式的,不太好直观的展示? 那该怎么办呢?  用K线图表示。

学习完这一章节,你就可以使用K线图来展示股票的日K数据信息。

类似于这样:

这个功能还是很强大的,大家可以好好学习一下。

本文含系统自动匹配的广告,广告收入用于支持持续创作,感谢理解

二.    数据源和响应信息

数据源仍然使用上一章节的数据接口, 为了避免大家忘记,小亥这儿再写一下。

股票的全量列表, 从 

 https://www.yueshushu.top/StockApi/stockHistory/history?sign=stock

中 获取     POST 请求

请求参数是:

{  "pageNum": 1,  "pageSize": 100,  "code": "001318",  "startDate": "2026-05-01",  "endDate": "2026-07-03"}

其中  code 是股票编码 (六位的纯数字股票编码)。   pageNum 和 pageSize 是 分页参数,   startDate  为开始时间, endDate 为结束时间。

响应体样式是:

{    "code": 20000,    "success": true,    "message": null,    "timestamp": 1783077316779,    "traceId": "4a0e4cc5-67df-48cf-8099-221e34e864a1",    "timestampStr": "2026-07-03 19:15:16",    "exceptionMessage": null,    "customInfo": "如果你对我的接口感兴趣,请联系我:+v: yueshushu_top",    "data": {        "total": 42,        "list": [            {                "id": 6730591,                "code": "001318",                "name": "阳光乳业",                "currDate": "2026-07-03 15:30:02",                "lowestPrice": 10.3000,                "openingPrice": 10.3000,                "yesClosingPrice": 10.3000,                "amplitude": 0.1500,                "amplitudeProportion": 1.4600,                "tradingVolume": 2330400.0000,                "tradingValue": 2437.0000,                "closingPrice": 10.4500,                "highestPrice": 10.5300,                "zt": 0,                "lowestTime": null,                "highestTime": null,                "openPercent": 0.0000,                "lowestPercent": 0.0000,                "highestPercent": 2.2300,                "outDish": 11718,                "innerDish": 11586,                "changingProportion": 0.8200,                "than": 1.0400,                "avgPrice": 10.4600,                "market": 29.5400,                "ltMarket": 29.5400,                "staticPriceRatio": 28.2700,                "dynamicPriceRatio": 38.7000,                "ttmPriceRatio": 29.1000,                "buyHand": 364,                "sellHand": 1150,                "appointThan": "-51.92",                "flag": 1,                "webUrl": null,                "dayWebUrl": null,                "aiSendMessage": "2026-07-03 10.3000,10.5300,10.3000,10.4500,2330400.0000",                "tradingVolumePercent": null,                "currDateStr": "07-03",                "tproportion": 2.2300            }        ]    }}

如果想了解 平台相关的数据源, 可以看我之前写的文章:

Java量化系列(二):实现股票日K数据每日自动同步

Java量化系列(三):实现东方财富历史日K线数据同步

关于 K线图的形态,大家可以看我之前写的文章

Java 量化系列(十五):输入股票代码,1 秒生成专业 K 线图!ECharts 渲染 + 精准数据,新手也能看懂走势

Java 量化系列(十四):输入股票代码,1 秒识别 K 线形态!自动判断涨跌,新手也能精准决策

Java量化系列(十三):42种K线形态“涨跌密码”全揭秘!新手也能精准预判行情

三.   Python 实现画K线图

为了方便大家理解和使用, 小亥将采用 streamlit  进行编写相关的脚本, 这样有页面,也方便点击 。

大家可以通过 AI 自行实现,  小亥这儿提供一个简单的版本。

脚本名称为   stock_history_kline.py

安装依赖:

pip install streamlit requests pandas plotly -i https://pypi.tuna.tsinghua.edu.cn/simple

直接复制粘贴即可

import streamlit as stimport requestsimport pandas as pdimport plotly.graph_objects as gofrom plotly.subplots import make_subplotsfrom datetime import datetime, timedeltafrom io import BytesIO# ===================== 接口配置 =====================STOCK_HISTORY_URL = "https://www.yueshushu.top/StockApi/stockHistory/history?sign=stock"SERVER_PORT = 9093# ===================== 页面配置 =====================st.set_page_config(    page_title="金亥跃江_股票K线图查询工具",    layout="wide",    page_icon="📈")# ===================== 查询股票历史数据 =====================def query_stock_history(stock_code, start_date, end_date):    req_body = {        "pageNum": 1,        "pageSize": 200,        "code": stock_code,        "type": 1,        "startDate": start_date,        "endDate": end_date    }    try:        resp = requests.post(STOCK_HISTORY_URL, json=req_body, timeout=20)        res_json = resp.json()        if res_json.get("code") == 20000 and res_json.get("success"):            data = res_json.get("data", {})            total = data.get("total", 0)            data_list = data.get("list", [])            df = pd.DataFrame(data_list)            return df, total, "success"        else:            return pd.DataFrame(), 0, f"接口返回异常:{res_json.get('message')}"    except Exception as e:        return pd.DataFrame(), 0, f"请求异常:{str(e)}"# ===================== K线图组件 =====================def plot_kline(df, stock_name, stock_code):    """    绘制K线图    Args:        df: 股票数据DataFrame        stock_name: 股票名称        stock_code: 股票代码    """    # 准备数据    df = df.sort_values('currDate')  # 按日期排序    # 将日期转换为 datetime 格式(Plotly 自动隐藏周末间隙)    from datetime import datetime    dates = []    for d in df['currDate'].tolist():        date_str = str(d).split(' ')[0] if ' ' in str(d) else str(d)        dates.append(pd.to_datetime(date_str))    opening = df['openingPrice'].astype(float).tolist()    closing = df['closingPrice'].astype(float).tolist()    highest = df['highestPrice'].astype(float).tolist()    lowest = df['lowestPrice'].astype(float).tolist()    volumes = df['tradingVolume'].astype(float).tolist()    # 判断涨跌    colors = ['#ef5350' if close >= open_ else '#26a69a'              for close, open_ in zip(closing, opening)]    # 创建子图:K线图在上,成交量在下    fig = make_subplots(        rows=2, cols=1,        shared_xaxes=True,        vertical_spacing=0.08,        row_heights=[0.75, 0.25],        subplot_titles=('', '成交量')    )    # 添加K线图    fig.add_trace(        go.Candlestick(            x=dates,            open=opening,            high=highest,            low=lowest,            close=closing,            name='K线',            increasing_line_color='#ef5350',  # 上涨红色            decreasing_line_color='#26a69a',  # 下跌绿色            increasing_fillcolor='#ef5350',            decreasing_fillcolor='#26a69a'        ),        row=1, col=1    )    # 添加成交量柱状图    fig.add_trace(        go.Bar(            x=dates,            y=volumes,            name='成交量',            marker_color=colors,            showlegend=False        ),        row=2, col=1    )    # 更新布局 - 隐藏周末间隙    fig.update_layout(        title={            'text': f'<b>{stock_name}({stock_code})</b> 日K线图',            'font': {'size': 20},            'x': 0.5,            'xanchor': 'center'        },        template='plotly_white',        height=700,        showlegend=True,        legend=dict(            orientation="h",            yanchor="bottom",            y=1.02,            xanchor="right",            x=1        ),        xaxis_rangeslider_visible=False,  # 隐藏默认的range slider        hovermode='x unified',        # 使用 rangebreaks 隐藏周末        xaxis=dict(            rangebreaks=[                dict(bounds=['sat', 'mon'])  # 隐藏周六到周一            ]        )    )    # 更新Y轴标签    fig.update_yaxes(title_text="价格", row=1, col=1, gridcolor='#E0E0E0')    fig.update_yaxes(title_text="成交量", row=2, col=1, gridcolor='#E0E0E0')    # 更新X轴    fig.update_xaxes(        row=2, col=1,        title_text="日期",        gridcolor='#E0E0E0',        showgrid=True    )    return fig# ===================== 页面主程序 =====================def main():    st.title("📈金亥跃江__A股股票K线图查询工具")    st.divider()    # 侧边栏查询条件    with st.sidebar:        st.header("🔍 查询条件配置")        # 手动输入股票代码        stock_code_input = st.text_input(            label="股票代码",            value="",            placeholder="请输入6位股票代码,如:001318"        )        # 默认日期:今天、往前2个月        today = datetime.now().date()        two_month_ago = today - timedelta(days=60)        start_date = st.date_input("开始日期", value=two_month_ago)        end_date = st.date_input("结束日期", value=today)        query_btn = st.button("🚀 开始查询", type="primary", use_container_width=True)        st.divider()        # K线图说明        with st.expander("📖 K线图说明"):            st.markdown("""            **K线图(蜡烛图)说明:**            - 🔴 **红色K线**:收盘价 > 开盘价(上涨)            - 🟢 **绿色K线**:收盘价 < 开盘价(下跌)            **K线构成:**            - 📍 **上影线**:最高价到收盘/开盘价的距离            - 📍 **下影线**:最低价到开盘/收盘价的距离            - 📍 **实体**:开盘价到收盘价的范围            **交互功能:**            - 🔍 鼠标滚轮缩放            - ✋ 点击拖拽移动            - 📊 悬停查看详情            """)    # 执行查询    if query_btn:        # 验证股票代码        if not stock_code_input or len(stock_code_input.strip()) == 0:            st.warning("请输入股票代码!")            return        selected_stock_code = stock_code_input.strip()        if start_date > end_date:            st.warning("开始日期不能晚于结束日期!")            return        start_str = start_date.strftime("%Y-%m-%d")        end_str = end_date.strftime("%Y-%m-%d")        with st.spinner("正在请求接口获取股票历史数据,请稍等..."):            df, total, msg = query_stock_history(selected_stock_code, start_str, end_str)        if msg != "success":            st.error(msg)            return        if df.empty:            st.info("当前筛选条件下未查询到任何行情数据")            return        # 获取股票名称        stock_name = df.iloc[0]['name'] if 'name' in df.columns else selected_stock_code        st.success(f"✅ 查询成功!共获取 {total} 条股票行情记录")        # 绘制K线图        fig = plot_kline(df, stock_name, selected_stock_code)        st.plotly_chart(fig, use_container_width=True)        # 显示数据统计信息        with st.expander("📊 数据统计"):            col1, col2, col3, col4 = st.columns(4)            with col1:                latest_close = float(df.iloc[-1]['closingPrice'])                st.metric("最新收盘价", f"{latest_close:.2f}")            with col2:                first_close = float(df.iloc[0]['closingPrice'])                change = latest_close - first_close                change_pct = (change / first_close) * 100 if first_close != 0 else 0                st.metric("期间涨跌", f"{change:+.2f}", f"{change_pct:+.2f}%")            with col3:                highest_price = float(df['highestPrice'].max())                st.metric("期间最高价", f"{highest_price:.2f}")            with col4:                lowest_price = float(df['lowestPrice'].min())                st.metric("期间最低价", f"{lowest_price:.2f}")        # 导出数据        st.divider()        file_name = f"{selected_stock_code}_{start_str}_{end_str}_股票历史数据.xlsx"        # 准备导出数据        COLUMN_MAP = {            "code": "股票代码",            "name": "股票名称",            "currDate": "交易日期",            "openingPrice": "开盘价",            "highestPrice": "最高价",            "lowestPrice": "最低价",            "closingPrice": "收盘价",            "yesClosingPrice": "昨日收盘价",            "amplitude": "涨跌额",            "amplitudeProportion": "涨跌幅(%)",            "tradingVolume": "成交量",            "tradingValue": "成交额"        }        SHOW_COLUMNS = list(COLUMN_MAP.keys())        export_df = df[SHOW_COLUMNS].copy()        export_df.rename(columns=COLUMN_MAP, inplace=True)        output = BytesIO()        with pd.ExcelWriter(output, engine="openpyxl") as writer:            export_df.to_excel(writer, index=False, sheet_name="股票行情数据")        excel_data = output.getvalue()        st.download_button(            label="📥 下载Excel数据",            data=excel_data,            file_name=file_name,            mime="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",            type="primary"        )        # 数据预览        with st.expander("📋 数据预览"):            st.dataframe(export_df, use_container_width=True, height=300)if __name__ == "__main__":    main()

运行脚本:

streamlit run stock_history_kline.py

Google 浏览器会自动打开

大家可以看一看 与专业的K线图的区别 

几乎是一样的。

后台私信  PythonK线图  可获取完整代码

免责声明:本文仅供技术交流,不构成任何投资建议。股市有风险,投资需谨慎。

如果你觉得这篇文章说到了心坎里,请点个“在看” 和推荐 ,点个关注,并转发给身边的朋友,让更多人支持小亥!

#Python量化   #股票量化  #股票历史数据  #金亥跃江聊量化 #金亥跃江

最新文章

随机文章

基本 文件 流程 错误 SQL 调试
  1. 请求信息 : 2026-07-06 18:27:51 HTTP/2.0 GET : https://f.mffb.com.cn/a/503698.html
  2. 运行时间 : 0.137889s [ 吞吐率:7.25req/s ] 内存消耗:4,522.59kb 文件加载:140
  3. 缓存信息 : 0 reads,0 writes
  4. 会话信息 : SESSION_ID=9226d91eec6682802c7bb7cb848711f3
  1. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/public/index.php ( 0.79 KB )
  2. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/autoload.php ( 0.17 KB )
  3. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/composer/autoload_real.php ( 2.49 KB )
  4. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/composer/platform_check.php ( 0.90 KB )
  5. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/composer/ClassLoader.php ( 14.03 KB )
  6. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/composer/autoload_static.php ( 4.90 KB )
  7. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/helper.php ( 8.34 KB )
  8. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-validate/src/helper.php ( 2.19 KB )
  9. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/helper.php ( 1.47 KB )
  10. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/stubs/load_stubs.php ( 0.16 KB )
  11. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Exception.php ( 1.69 KB )
  12. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-container/src/Facade.php ( 2.71 KB )
  13. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/symfony/deprecation-contracts/function.php ( 0.99 KB )
  14. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/symfony/polyfill-mbstring/bootstrap.php ( 8.26 KB )
  15. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/symfony/polyfill-mbstring/bootstrap80.php ( 9.78 KB )
  16. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/symfony/var-dumper/Resources/functions/dump.php ( 1.49 KB )
  17. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-dumper/src/helper.php ( 0.18 KB )
  18. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/symfony/var-dumper/VarDumper.php ( 4.30 KB )
  19. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/App.php ( 15.30 KB )
  20. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-container/src/Container.php ( 15.76 KB )
  21. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/psr/container/src/ContainerInterface.php ( 1.02 KB )
  22. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/provider.php ( 0.19 KB )
  23. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Http.php ( 6.04 KB )
  24. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/helper/Str.php ( 7.29 KB )
  25. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Env.php ( 4.68 KB )
  26. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/common.php ( 0.03 KB )
  27. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/helper.php ( 18.78 KB )
  28. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Config.php ( 5.54 KB )
  29. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/app.php ( 0.95 KB )
  30. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/cache.php ( 0.78 KB )
  31. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/console.php ( 0.23 KB )
  32. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/cookie.php ( 0.56 KB )
  33. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/database.php ( 2.48 KB )
  34. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/facade/Env.php ( 1.67 KB )
  35. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/filesystem.php ( 0.61 KB )
  36. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/lang.php ( 0.91 KB )
  37. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/log.php ( 1.35 KB )
  38. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/middleware.php ( 0.19 KB )
  39. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/route.php ( 1.89 KB )
  40. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/session.php ( 0.57 KB )
  41. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/trace.php ( 0.34 KB )
  42. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/view.php ( 0.82 KB )
  43. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/event.php ( 0.25 KB )
  44. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Event.php ( 7.67 KB )
  45. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/service.php ( 0.13 KB )
  46. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/AppService.php ( 0.26 KB )
  47. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Service.php ( 1.64 KB )
  48. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Lang.php ( 7.35 KB )
  49. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/lang/zh-cn.php ( 13.70 KB )
  50. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/initializer/Error.php ( 3.31 KB )
  51. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/initializer/RegisterService.php ( 1.33 KB )
  52. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/services.php ( 0.14 KB )
  53. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/service/PaginatorService.php ( 1.52 KB )
  54. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/service/ValidateService.php ( 0.99 KB )
  55. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/service/ModelService.php ( 2.04 KB )
  56. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-trace/src/Service.php ( 0.77 KB )
  57. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Middleware.php ( 6.72 KB )
  58. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/initializer/BootService.php ( 0.77 KB )
  59. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/Paginator.php ( 11.86 KB )
  60. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-validate/src/Validate.php ( 63.20 KB )
  61. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/Model.php ( 23.55 KB )
  62. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/Attribute.php ( 21.05 KB )
  63. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/AutoWriteData.php ( 4.21 KB )
  64. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/Conversion.php ( 6.44 KB )
  65. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/DbConnect.php ( 5.16 KB )
  66. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/ModelEvent.php ( 2.33 KB )
  67. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/RelationShip.php ( 28.29 KB )
  68. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/contract/Arrayable.php ( 0.09 KB )
  69. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/contract/Jsonable.php ( 0.13 KB )
  70. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/contract/Modelable.php ( 0.09 KB )
  71. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Db.php ( 2.88 KB )
  72. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/DbManager.php ( 8.52 KB )
  73. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Log.php ( 6.28 KB )
  74. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Manager.php ( 3.92 KB )
  75. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/psr/log/src/LoggerTrait.php ( 2.69 KB )
  76. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/psr/log/src/LoggerInterface.php ( 2.71 KB )
  77. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Cache.php ( 4.92 KB )
  78. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/psr/simple-cache/src/CacheInterface.php ( 4.71 KB )
  79. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/helper/Arr.php ( 16.63 KB )
  80. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/cache/driver/File.php ( 7.84 KB )
  81. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/cache/Driver.php ( 9.03 KB )
  82. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/contract/CacheHandlerInterface.php ( 1.99 KB )
  83. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/Request.php ( 0.09 KB )
  84. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Request.php ( 55.78 KB )
  85. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/middleware.php ( 0.25 KB )
  86. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Pipeline.php ( 2.61 KB )
  87. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-trace/src/TraceDebug.php ( 3.40 KB )
  88. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/middleware/SessionInit.php ( 1.94 KB )
  89. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Session.php ( 1.80 KB )
  90. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/session/driver/File.php ( 6.27 KB )
  91. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/contract/SessionHandlerInterface.php ( 0.87 KB )
  92. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/session/Store.php ( 7.12 KB )
  93. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Route.php ( 23.73 KB )
  94. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/RuleName.php ( 5.75 KB )
  95. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/Domain.php ( 2.53 KB )
  96. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/RuleGroup.php ( 22.43 KB )
  97. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/Rule.php ( 26.95 KB )
  98. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/RuleItem.php ( 9.78 KB )
  99. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/route/app.php ( 1.72 KB )
  100. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/facade/Route.php ( 4.70 KB )
  101. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/dispatch/Controller.php ( 4.74 KB )
  102. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/Dispatch.php ( 10.44 KB )
  103. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/controller/Index.php ( 4.81 KB )
  104. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/BaseController.php ( 2.05 KB )
  105. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/facade/Db.php ( 0.93 KB )
  106. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/connector/Mysql.php ( 5.44 KB )
  107. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/PDOConnection.php ( 52.47 KB )
  108. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/Connection.php ( 8.39 KB )
  109. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/ConnectionInterface.php ( 4.57 KB )
  110. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/builder/Mysql.php ( 16.58 KB )
  111. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/Builder.php ( 24.06 KB )
  112. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/BaseBuilder.php ( 27.50 KB )
  113. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/Query.php ( 15.71 KB )
  114. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/BaseQuery.php ( 45.13 KB )
  115. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/TimeFieldQuery.php ( 7.43 KB )
  116. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/AggregateQuery.php ( 3.26 KB )
  117. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/ModelRelationQuery.php ( 20.07 KB )
  118. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/ParamsBind.php ( 3.66 KB )
  119. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/ResultOperation.php ( 7.01 KB )
  120. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/WhereQuery.php ( 19.37 KB )
  121. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/JoinAndViewQuery.php ( 7.11 KB )
  122. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/TableFieldInfo.php ( 2.63 KB )
  123. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/Transaction.php ( 2.77 KB )
  124. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/log/driver/File.php ( 5.96 KB )
  125. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/contract/LogHandlerInterface.php ( 0.86 KB )
  126. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/log/Channel.php ( 3.89 KB )
  127. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/event/LogRecord.php ( 1.02 KB )
  128. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/Collection.php ( 16.47 KB )
  129. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/facade/View.php ( 1.70 KB )
  130. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/View.php ( 4.39 KB )
  131. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Response.php ( 8.81 KB )
  132. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/response/View.php ( 3.29 KB )
  133. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Cookie.php ( 6.06 KB )
  134. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-view/src/Think.php ( 8.38 KB )
  135. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/contract/TemplateHandlerInterface.php ( 1.60 KB )
  136. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-template/src/Template.php ( 46.61 KB )
  137. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-template/src/template/driver/File.php ( 2.41 KB )
  138. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-template/src/template/contract/DriverInterface.php ( 0.86 KB )
  139. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/runtime/temp/067d451b9a0c665040f3f1bdd3293d68.php ( 11.98 KB )
  140. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-trace/src/Html.php ( 4.42 KB )
  1. CONNECT:[ UseTime:0.000363s ] mysql:host=127.0.0.1;port=3306;dbname=f_mffb;charset=utf8mb4
  2. SHOW FULL COLUMNS FROM `fenlei` [ RunTime:0.000746s ]
  3. SELECT * FROM `fenlei` WHERE `fid` = 0 [ RunTime:0.000284s ]
  4. SELECT * FROM `fenlei` WHERE `fid` = 63 [ RunTime:0.000251s ]
  5. SHOW FULL COLUMNS FROM `set` [ RunTime:0.000539s ]
  6. SELECT * FROM `set` [ RunTime:0.000195s ]
  7. SHOW FULL COLUMNS FROM `article` [ RunTime:0.000547s ]
  8. SELECT * FROM `article` WHERE `id` = 503698 LIMIT 1 [ RunTime:0.017468s ]
  9. UPDATE `article` SET `lasttime` = 1783333672 WHERE `id` = 503698 [ RunTime:0.000770s ]
  10. SELECT * FROM `fenlei` WHERE `id` = 66 LIMIT 1 [ RunTime:0.000298s ]
  11. SELECT * FROM `article` WHERE `id` < 503698 ORDER BY `id` DESC LIMIT 1 [ RunTime:0.000523s ]
  12. SELECT * FROM `article` WHERE `id` > 503698 ORDER BY `id` ASC LIMIT 1 [ RunTime:0.000569s ]
  13. SELECT * FROM `article` WHERE `id` < 503698 ORDER BY `id` DESC LIMIT 10 [ RunTime:0.027964s ]
  14. SELECT * FROM `article` WHERE `id` < 503698 ORDER BY `id` DESC LIMIT 10,10 [ RunTime:0.002230s ]
  15. SELECT * FROM `article` WHERE `id` < 503698 ORDER BY `id` DESC LIMIT 20,10 [ RunTime:0.018620s ]
0.139498s