#!/bin/bash # 切换到脚本所在的目录 cd "$(dirname "$0")" # 运行 Python 应用 python3 script.py