29 lines
769 B
Python
29 lines
769 B
Python
#!/usr/bin/env python3
|
|
"""
|
|
启动MySQL版本的Web应用
|
|
"""
|
|
|
|
import sys
|
|
from pathlib import Path
|
|
|
|
# 添加项目根目录到路径
|
|
current_dir = Path(__file__).parent
|
|
sys.path.insert(0, str(current_dir))
|
|
|
|
from web.mysql_app import app
|
|
|
|
if __name__ == '__main__':
|
|
print("="*70)
|
|
print("🌐 A股量化交易系统 Web界面 (MySQL版)")
|
|
print("="*70)
|
|
print("🚀 启动Flask服务器...")
|
|
print("📊 访问地址: http://localhost:8080")
|
|
print("🗄️ 数据库: MySQL (腾讯云)")
|
|
print("✨ 功能特性:")
|
|
print(" - 创新高回踩确认策略")
|
|
print(" - 增强时间线显示")
|
|
print(" - 实时信号监控")
|
|
print(" - 回踩提醒功能")
|
|
print("="*70)
|
|
|
|
app.run(host='0.0.0.0', port=8080, debug=True) |