cat > .gitignore <<'EOF'
# Python
__pycache__/
*.pyc
*.pyo
*.pyd

# 前端
node_modules/
dist/

# IDE
.idea/
.vscode/

# 日志
*.log
EOF
