index.html 625 B

123456789101112131415161718192021222324252627
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>股票数据分析</title>
  6. <link href="https://cdn.bootcdn.net/ajax/libs/bootstrap/4.5.2/css/bootstrap.min.css" rel="stylesheet">
  7. </head>
  8. <body>
  9. <div class="container mt-5">
  10. <h1>上传CSV文件</h1>
  11. <form action="/" method="post" enctype="multipart/form-data">
  12. <input type="file" name="file">
  13. <input type="submit" value="上传">
  14. </form>
  15. {% if tables %}
  16. <h2>分析结果</h2>
  17. {% for table in tables %}
  18. {{ table|safe }}
  19. {% endfor %}
  20. {% endif %}
  21. </div>
  22. </body>
  23. </html>