windows
for /f "tokens=5 " %a in ('netstat -ao^|findstr 8080') do @taskkill /F /PID %a
linux
kill -9 $(netstat -tlnp|grep 8080|awk '{print $7}'|awk -F '/' '{print $1}')
windows
for /f "tokens=5 " %a in ('netstat -ao^|findstr 8080') do @taskkill /F /PID %a
linux
kill -9 $(netstat -tlnp|grep 8080|awk '{print $7}'|awk -F '/' '{print $1}')
import sys sys.path.append('../..') sys.path.append('.') sys.path.append('./') 把這些路徑都加入sys.path就找到了.