walk along是你走在什么上,walk by是你走在什么旁边
比如walk along the street 沿着街走
walk by the river 走在河边(而不能是walk along the river)