# -*- coding: utf-8 -*-
import csv
from difflib import get_close_matches

with open('./Zip32_10301.csv') as files:
    csv_files = csv.reader(files)
    csv_files = [' '.join(i) for i in csv_files]
    #print csv_files[5]

address = u'高雄市三民區大昌二路'
print address
for i in get_close_matches(address.encode('utf-8'), csv_files):
    print i

# -*- coding: utf-8 -*-
import csv
from difflib import get_close_matches
from random import choice

with open('./Zip32_10301.csv') as files:
    csv_files = csv.reader(files)
    csv_files = [' '.join(i) for i in csv_files]
    print u'測試：', choice(csv_files)

address = u'高雄市三民區大昌二路307-1號'
print u'查詢：', address
print u'結果：'
for i in get_close_matches(address.encode('utf-8'), csv_files):
    print i

Add full address for test.
Add full address for test.
