#35092: 我的作法(python)


s11104220@school.saihs.edu.tw (施同學)


k=["W","S","E","N"]
a.sort(key=lambda x:(x[1],k.index(x[0])))
 
x[1]是距離/時間
x[0]是字母