walking = True try: if walking: keepWalking(目的地) except 路邊問卷調查Exception: #怎麼回應好呢... #... #... keepWaking(目的地)