原创 更復雜的用戶輸入之scan函數ex48(lexicon.py)

# -*- coding:utf-8 -*- def scan(sentence): # 將已知的詞彙放入列表中存儲 directions = ['north', 'south', 'east', 'west', 'down',