Try   HackMD

2024-08-17 中央大學Python基礎班 上課記錄

2024-08-31

學生成績管理系統

grades = {} # 存放全部資料 def student_system(): # 載入csv try: load() except FileNotFoundError: print('第一次執行,所以沒有檔案可以載入') while True: print('=====================================================') print('= 學生成績管理系統') print('=') print('= 版本: 0.01') print('= 開發者: Aaron') print('=====================================================') print('1. 管理學生成績') print('2. 查詢學生成績') print('3. 離開系統') user_input = input('=> ') if user_input == '1': management() elif user_input == '2': query() elif user_input == '3': break else: print('輸入錯誤,請重新輸入!') # 管理學生成績 def management(): while True: print('-------------------') print('- 管理學生成績') print('-------------------') print('1. 新增學生成績') print('2. 刪除學生成績') print('3. 回主選單') user_input = input('=> ') if user_input == '1': add_grade() elif user_input == '2': del_grade() elif user_input == '3': break else: print('輸入錯誤,請重新輸入!') # 查詢學生成績 def query(): while True: print('-------------------') print('- 查詢學生成績') print('-------------------') print('1. 姓名查詢') print('2. 全部查詢') print('3. 回主選單') user_input = input('=> ') if user_input == '1': query_by_name() elif user_input == '2': query_all() elif user_input == '3': break else: print('輸入錯誤,請重新輸入!') # 新增學生成績 def add_grade(): name = input('請輸入姓名: ') no = input('請輸入學號: ') chinese = input('請輸入國文成績: ') english = input('請輸入英文成績: ') math = input('請輸入數學成績: ') # 新增到字典 grades[name] = [no, chinese, english, math] # 寫入檔案 save() # 測試用 print(grades) # 刪除成績 def del_grade(): user_input = input('請輸入姓名: ') if user_input in grades: del grades[user_input] print('刪除完成') else: print('查無此人') save() def query_by_name(): user_input = input('請輸入姓名: ') if user_input in grades: print(f'姓名: {user_input}, 學號: {grades[user_input][0]}, 國文: {grades[user_input][1]}, 英文: {grades[user_input][2]}, 數學: {grades[user_input][3]}') else: print('查無此人') def query_all(): for i in grades: print(f'姓名: {i}, 學號: {grades[i][0]}, 國文: {grades[i][1]}, 英文: {grades[i][2]}, 數學: {grades[i][3]}') def save(): with open('student_system.csv', 'w', encoding='utf-8') as file: for i in grades: file.write(f'{i},{grades[i][0]},{grades[i][1]},{grades[i][2]},{grades[i][3]}\n') def load(): with open('student_system.csv', 'r', encoding='utf-8') as file: for i in file: # 從檔案一列一列讀進來 i = i.split(',') grades[i[0]] = [i[1], i[2], i[3], i[4].strip()] print(grades) student_system()

模組

happy/m3.py
b = 3
m2.py
def plus(a, b): return a + b def show(name, age): print(f'姓名: {name}, 年齡: {age}')
m0831.py
def func(*b, **a): print(a) print(b) a = 'Hello Module' # 當被以模組import的時候,下面程式碼不要被執行 if __name__ == '__main__': func(4, 5, 6, a=1, b=2, c=3) print('__name__裡面是:', __name__)
test.py
import m0831 from m2 import show # import happy.m3 from happy.m3 import b as test m0831.func(1,2,3, a=999) print(m0831.a) show('aaron', 99) b = 4 # print(happy.m3.b) print(test)

不定長度參數(字典)

def func(*b, **a): print(a) print(b) func(4, 5, 6, a=1, b=2, c=3)

不定長度參數

def count(*a): total = 0 for i in a: total += i return total print(count(1, 2)) print(count(1, 2, 3)) print(count(1, 2, 3, 4)) print(count(1, 2, 3, 4, 5)) print(count(1, 2, 3, 4, 5, 6))

函式回傳多個值

def cal(a, b): return a + b, a - b, a * b, a / b a, b, c, d = cal(6, 3) print(a) print(b) print(c) print(d)

變數交換

a = 3 b = 5 a, b = b, a print(a, b)

字典(dict)

# dict字典 a = {} # 建立空的字典 a = {'a':99} # 新增資料 a[88] = 'Hi' a['kkk'] = True # 查詢 print(a['a']) # 修改 a['a'] = 66 # 刪除 del a['a'] print(a)

tuple

# a = (4, 5) # a = (4, 5,) # a = 4, 5 # a = 4, 5, # a = 6, # a = (6,) # a = 1, 2 # pack打包 # print(type(a)) # print(a) # a1, a2 = a # 解包 # print(a1, a2) a = (99, 88, 66, 55) a1, *a2, a3 = a print(a1) print(a2) print(a3) a = (99, 88, 66, 55) a1, a2, *a3 = a print(a1) print(a2) print(a3) a = (99, 88, 66, 55, 44) *a1, a2, a3 = a print(a1) print(a2) print(a3) print(a[3]) a[2] = 8 # 錯誤

注意

a = [] b = {} # 不是set b = set() c = {3} # set d = (6, 4) print(type(a)) print(type(b)) print(type(c)) print(type(d))

lambda的呼叫

print( (lambda a: a ** 3)(3) )

def test(a, b): if a > b: return True else: return False test1 = lambda a, b: a > b print(test(5, 6)) print(test1(5, 6)) print(test(15, 6)) print(test1(15, 6))

lambda

def plus(a, b): return a + b plus_v2 = lambda a, b: a + b print(plus(3, 4)) print(plus_v2(5, 6))

計算平方函式

def my_func(a): b = [] for i in a: b.append(i ** 2) return b a = [1, 2, 3, 4] b = my_func(a) print(b) # map高階函式 def q3(a): return a ** 2 b = map(q3, a) print(list(b)) # lambda寫法 b = map(lambda a: a ** 2, a) print(list(b))

高階函式

def my_filter(a): result = [] for i in a: if i % 2 == 0: result.append(i) return result a = [2, 7, 13, 24, 98, 101] print(my_filter(a)) def q1(a): return a % 2 == 0 def q2(a): return a >= 60 print(list(filter(q1, a))) print(list(filter(q2, a)))

一級函式

print('a') print(type(print)) def show(): print('Hello') print(sum([1, 2, 3, 4])) print = 4 sum = 5 del sum # 恢復sum原本的含式 sum([2, 3, 4]) # print('b')
def cal(a, b, c): return a(b, c) def plus(a, b): return a + b def min(a, b): return a - b def mux(a, b): return a * b def div(a, b): return a / b result = cal(mux, 4, 5) print(result)
def nine(a): for i in range(1, 10): print(f'{a} x {i} = {a * i}') a = nine nine(3) a(5)

指定參數

def show(name, age='無資料', phone='無資料', addr='無資料', birth='無資料'): print(f'姓名: {name}, 年齡: {age}, 電話: {phone}, 地址: {addr}, 生日: {birth}') show('aaron', 19.321, '0987654321', 'xxxx', '2000-01-01') show('andyq', 99.11, '0987654333', 'dsfsdxxxx', '2001-01-01') show('apple', 99.1234, '0987654333') show(phone='0987654333', name='abner')

參數預設值

def show(name, age='無資料', phone='無資料', addr='無資料', birth='無資料'): print(f'姓名: {name}, 年齡: {age}, 電話: {phone}, 地址: {addr}, 生日: {birth}') show('aaron', 19, '0987654321', 'xxxx', '2000-01-01') show('andy', 99, '0987654333', 'dsfsdxxxx', '2001-01-01') show('apple', 99, '0987654333') show('abner', '0987654333')

練習

寫一函式,輸入一個參數,呼叫時傳入成績,會回傳及格或不及格

def score(a): if a >= 60: return '及格' else: return '不及格' print( score(70) ) print( score(30) ) print( score(80) )

回傳值

def plus(a, b): c = a + b # print(c) return c # 需求: 4, 5, 6 result = plus(4, 5) result = plus(result, 6) print(result)

參數

def plus(a, b): print(a + b) plus(1, 2) plus(3, 4) plus(5, 6)

函式

# 函式要透過呼叫才會執行 def calculator(): a = int(input('請輸入一個數字: ')) b = int(input('請輸入一個數字: ')) c = a * b print(f'總合為: {c}') calculator() # 函式呼叫 # a = int(input('請輸入一個數字: ')) # b = int(input('請輸入一個數字: ')) # c = a * b # print(f'總合為: {c}') calculator() # a = int(input('請輸入一個數字: ')) # b = int(input('請輸入一個數字: ')) # c = a + b # print(f'總合為: {c}')

2024-08-24 上課筆記

安裝requests模組

pip3 install requests

抓取桃園Ubike opendata

import requests import csv response = requests.get('http://data.tycg.gov.tw/api/v1/rest/datastore/a1b4714b-3b75-4ff8-a8f2-cc377e4eaa0f?format=csv&limit=999') with open('ubike_v2.csv', 'w', encoding='utf-8') as file: file.write(response.text) with open('ubike_v2.csv', 'r', encoding='utf-8') as file: result = csv.reader(file) result = list(result) user = input('請輸入要搜尋的站台: ') # 3: 中文站名 # 5: 空位 # 12: 剩餘可借數量 # 6: 中文地址 for row in result: if user in row[3]: print('站名:', row[3], ', 地址:', row[6]) print(' - 目前可借:', row[12]) print(' - 目前空位:', row[5]) print() # 用f-string的方式來格式化字串 print(f'站名: {row[3]}, 地址: {row[6]}') print(f' - 目前可借: {row[12]}') print(f' - 目前可還: {row[5]}') print()

來源: https://data.tycg.gov.tw/opendata/datalist/datasetMeta/outboundDesc?id=5ca2bfc7-9ace-4719-88ae-4034b9a5a55c&rid=a1b4714b-3b75-4ff8-a8f2-cc377e4eaa0f

range()

a = range(18) # 產生0~17連續數字 a = range(50, 55) # 產生50~54連續數字 a = range(0, 10, 2) # 產生0 2 4 6 8 a = range(5, 16, 5) a = range(5, 0, -1) a = list(a) print(a)

數字加總

a = [11, 22, 33, 7] total = 0 for temp in a: total = total + temp print(total)

輸出十個星號

for i in range(10): print('*', end='')

輸入正方形

user = int( input('請輸入一個數字: ') ) for j in range(user): for i in range(user): print('*', end='') print()

練習

# 輸出3的九九乘法表 for i in range(1, 10): print(f'3 x {i} = {3 * i}') a = int(input('請輸入第一個數字: ')) b = int(input('請輸入第二個數字: ')) # 輸入兩個數字,計算這兩個數字之間的連續數字總和 total = 0 for i in range(a, b + 1): total = total + i print(f'{a}{b}之間的連續數字總合為: {total}') # 計算1~100之間的偶數總和 total = 0 for i in range(0, 101, 2): total = total + i print(f'1到100之間的偶數總和為: {total}') total = 0 for i in range(1, 101): if i % 2 == 0: total = total + i print(f'總合為: {total}')

完整九九乘法表

for i in range(2, 10): for j in range(1, 10): print(f'{i} x {j} = {i * j}')

輸入任意個數字做加總

total = 0 for i in range(100): user = input('請輸入數字(quit=結束): ') if user == 'quit': # 強制結束迴圈 break user = int(user) total = total + user print(f'總合為: {total}')

輸入成績,只保留及格的分數

a = [] for i in range(100): user = input('請輸入成績(quit=結束): ') if user == 'quit': # 結束迴圈 break user = int(user) # 不及格的分數不存下來 if user < 60: # 忽略剩下的程式碼,進行下一次的迴圈 continue a.append(int(user)) print(a)

算命程式

import random # 引入隨機模組 a = random.randint(1, 10) # 產生1~10之間的隨機整數 if a == 1: print('今天會撿到錢') if a == 2: print('今天會中發票') if a == 3: print('今天會加薪') if a == 4: print('今天會發獎金') if a == 5: print('今天我買的股票都漲停') if a == 6: print('沒事') if a == 7: print('沒事') if a == 8: print('沒事') if a == 9: print('沒事') if a == 10: print('沒事') if a == 1: print('今天會撿到錢') elif a == 2: print('今天會中發票') elif a == 3: print('今天會加薪') elif a == 4: print('今天會發獎金') elif a == 5: print('今天我買的股票都漲停') else: print('沒事')

剪刀石頭布

# print(True and True) # print(False or True) # print(not True) # print(3 == 4 or 9 != 8) import random # 電腦出拳 pc = random.randint(0, 2) # 0=剪刀,1=石頭, 2=布 print(f'電腦出了: {['剪刀', '石頭', '布'][pc]}') # 玩家出拳 user = int(input('請出拳(0=剪刀,1=石頭, 2=布): ')) print(f'你出了: {['剪刀', '石頭', '布'][user]}') # 遊戲邏輯 if pc == 0 and user == 1: print('你贏了') elif pc == 0 and user == 2: print('你輸了') elif pc == 1 and user == 0: print('你輸了') elif pc == 1 and user == 2: print('你贏了') elif pc == 2 and user == 0: print('你贏了') elif pc == 2 and user == 1: print('你輸了') else: print('平手')

切片

a = [12, 32, 55, 64, 73, 89, 24, 0] print(a[1:6]) print(a[1:6:3]) print(a[-5:-1]) print(a[::-1]) # 資料會顛倒 print(a[::]) print(a[3:-1:3]) print(a[-1:-6:-1]) print(a[1:6:-1]) # 拿不到資料,要注意方向 print(a[::len(a)-1]) # 拿第一筆跟最後一筆資料

例外處理

try: user = int(input('請輸入數字: ')) print('Hello') print(user + 3) except ValueError: print('轉型失敗, 請輸入正確的數字')

幫忙加上例外

a = [1, 2, 3, 4] print(a[5])

結果

a = [1, 2, 3, 4] try: print(a[5]) except IndexError: print('資料不存在') except ValueError: print('轉型失敗') print('Hello')

補充

a = [1, 2, 3, 4] try: print(a[5]) except Exception as e: print('有例外:' + str(e)) print('Hello')

set

a = {1, 2, 3, 4, 5, 5, 5, 5, 5, 5} a.add(99) a.remove(5) print(type(a)) print(a) for i in a: print(i)

差集、交集、聯集、對稱差集

employee1 = {'英文', '日語', '粵語', '台語'} employee2 = {'法語', '德語', '中文', '日語', '台語'} print(f'只有員工1號會的語言: {employee1 - employee2}') # 差集 print(f'只有員工2號會的語言: {employee2 - employee1}') print(f'兩個人都會的語言: {employee1 & employee2}') # 交集 print(f'總共會的: {employee1 | employee2}') # 聯集 print(f'只有一個人會的語言: {employee1 ^ employee2}') # 對稱差集

while

i = 0 while i < 10: print('Hi') i += 1 # i = i + 1

猜數字遊戲

import random a = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'] answer = random.sample(a, 4) answer = answer[0] + answer[1] + answer[2] + answer[3] print(f'答案: {answer}') guess_count = 0 # 紀錄猜測次數 while True: user = input('請猜0~9之間的四位數(不可以重覆): ') guess_count += 1 # 次數加一 print(f'已經猜了{guess_count}次') # 檢查使用者輸入的是不是數字 try: int(user) except ValueError: print('只能輸入數字, 請重新輸入') continue # 檢查輸入的是不是四個數字 if len(user) != 4: print('只能輸入四個數字, 請重新輸入') continue # 檢查輸入的數字有沒有重複 if len(set(user)) != 4: print('數字不可重覆, 請重新輸入') continue # 猜對了,結束遊戲 if user == answer: print(f'猜對了,總共猜了{guess_count}次') # 結束遊戲 break # 判斷有幾個A how_many_A = 0 if answer[0] == user[0]: how_many_A += 1 if answer[1] == user[1]: how_many_A += 1 if answer[2] == user[2]: how_many_A += 1 if answer[3] == user[3]: how_many_A += 1 # 判斷有幾個B how_many_B = 0 if user[0] in answer and user[0] != answer[0]: how_many_B += 1 if user[1] in answer and user[1] != answer[1]: how_many_B += 1 if user[2] in answer and user[2] != answer[2]: how_many_B += 1 if user[3] in answer and user[3] != answer[3]: how_many_B += 1 print(f'{how_many_A}A{how_many_B}B')

2024-08-17 上課筆記

第一行程式碼

  1. 安裝Visual Studio Code: https://code.visualstudio.com/
  2. 安裝Python SDK: https://www.python.org/ftp/python/3.12.5/python-3.12.5-amd64.exe
  3. 從VSCode內的檔案總管選取一個目錄
  4. 從VSCode內的檔案總管建立一個新檔案: 主檔名隨意,副檔名必須為.py
  5. 輸入下面程式碼
print('Hello Python')
  1. Ctrl-F5執行程式碼
  2. 確認下方終端機有看到Hello Python文字

輸出與資料型態

print('變換') print(3 + 3) # int 整數 print(3.4) # float 浮點數 print('3' + '3') # str 字串 print( type(3) )

常用快速鍵

功能 快速鍵
執行 Ctrl-F5
快速複製同一行 Ctrl-C, Ctrl-V (請勿選取任何文字)
註解 Ctrl - /
多重游標 Alt-滑鼠左鍵

input輸入

print('變換') print(3 + 3) # int 整數 print(3.4) # float 浮點數 print('3' + '3') # str 字串 my_data = input() # 讓使用者從鍵盤輸入資料 print( type(3) ) print( type('3') ) print( type(3.4) ) print(my_data)

計算平方

a = input('請輸入一個數字: ') # input輸入的資料是字串str型態 b = int(a) # 呼叫int函式把a變數裡面的字串轉換成int數字並存放到變數b print('你剛剛輸入的數字平方為:', b * b)

計算加總

# 讓使用者輸入兩個數字 a1 = input('請輸入第一個數字: ') a2 = input('請輸入第二個數字: ') # 資料轉型(把字串傳型成數字) a1 = int(a1) a2 = int(a2) # 輸出 print(a1, '和', a2, '的總和為:', a1 + a2)

比較運算子

print(3 > 4) print(5 < 6) print(5 >= 5) print(6 <= 3) print(3 == 3) print(3 != 3) print( type(True) )

if判斷

score = input('請輸入成績: ') score = int(score) if score >= 60: print('及格') if score < 60: print('不及格')

餘數運算

user = input('請輸入一個數字: ') user = int(user) # 字串轉數字 result = user % 2 # 做2的餘數運算 if result == 1: print('奇數') else: print('偶數')

in

data = '''台灣今天仍處於大低壓帶中,易有短延時強降雨,中南部地區不定時有短暫陣雨或雷雨,中午過後各地皆有局部短暫雷陣雨。氣象專家吳德榮說,一直到下周二(20日)大氣都很不穩定,各地有大雷雨發生的機率,應續防雷擊、強風及瞬間大雨的劇烈天氣;下周三(21日)起太平洋高壓增強,各地晴朗炎熱,盛夏再臨。 中央氣象署持續發布大雨特報指出,對流雲系發展旺盛,易有短延時強降雨,今日苗栗至彰化、台南、高雄地區及北部、南投、宜蘭、花蓮山區有局部大雨發生的機率,請注意雷擊及強陣風,山區請慎防坍方、落石及溪水暴漲,低窪地區請慎防積水。''' user = input('請輸入關鍵字: ') if user in data: print(user, '有出現在新聞內') else: print(user, '沒有出現在新聞內')

注意:
多行字串必須改用三單引號或三雙引號來包圍字串

list

a = [2, 4, 6] # list資料型態,並將list存放到a變數裡 a[0] = 9 # 將第一筆資料修改成9 print(a[0]) # 取得list內的第一筆資料 print(a[1]) # 取得list內的第2筆資料 print(a[2]) # 取得list內的第3筆資料 a.append(88) # 將88新增到a變數裡面的list(從最後面新增) a.insert(0, 77) # 從第一筆資料的地方插入77 a.remove(4) # 將4這筆資料從list裡面刪除 print(a) a.insert(4, 777) # 從list最後面插入777 print(a) del a[2] # 2是list索引值,代表第三筆資料 print(a)

for-in迴圈

a = [1, 2, 3, 4] for temp in a: print(temp)

幫每筆資料加10分

a = [33, 32, 33, 34, 45, 56, 63, 21] for temp in a: print('加分後:', temp + 10)

不及格才加分

a = [35, 63, 25, 47, 93] final = [] # 建立空的list for temp in a: if temp < 60: print('最終成績:', temp + 10) final.append(temp + 10) else: print('最終成績:', temp) final.append(temp) print(final)

csv解析

score.csv
姓名,學號,分數 abc,1,99 def,2,88 ghi,3,77 jkl,4,66

解析csv到python list

import csv # 引入csv模組 with open('score.csv', 'r', encoding='utf-8') as file: result = csv.reader(file) result = list(result) print(result)

桃園市ubike即時資訊

ubike.csv

"retCode","retVal__|","retVal__|__sna","retVal__|__tot","retVal__|__sbi","retVal__|__lat","retVal__|__lng","retVal__|__bemp","retVal__|__act","retVal__|__sno","retVal__|__sarea","retVal__|__mday","retVal__|__ar","retVal__|__sareaen","retVal__|__snaen","retVal__|__aren" "1","2001","中央大學圖書館","14","8","24.968128","121.194666","6","1","2001","中壢區","20240807014340","中大路300號(中央大學校內圖書館前)","Zhongli Dist.","National Central University Library","No.300, Zhongda Rd." "","2002","中壢高中","12","4","24.960815","121.212038","8","1","2002","中壢區","20240807014318","中央西路二段215號對面人行道","Zhongli Dist.","Jhungli Senior High School","No.215, Sec. 2, Zhongyang W. Rd. (opposite)" "","2009","翠堤橋","12","2","24.953265","121.215878","10","1","2009","中壢區","20240807014337","義民路105號旁人行道","Zhongli Dist.","Cuiti Bridge","No.105, Yimin Rd." "","2019","民族公園","12","2","24.995946","121.306636","9","1","2019","桃園區","20240807014337","汕頭街15號對面民族公園旁人行道","Taoyuan Dist.","Minzu Park","No.15, Shantou St.(opposite)" "","2020","朝陽森林公園","10","7","24.999107","121.312820","3","1","2020","桃園區","20240807014336","朝陽街104-108號對面機車停車場","Taoyuan Dist.","Chaoyang Park","No.104 to No.108, Chaoyang St." "","2021","桃園延平公園","18","4","24.980482","121.314998","14","1","2021","桃園區","20240807014337","大豐路187號對面延平公園旁人行道","Taoyuan Dist.","Taoyuan Yenping Park","No.187, Dafeng Rd.(opposite)" "","2022","福豐公園","8","3","24.985652","121.311513","4","1","2022","桃園區","20240807014341","建國路昆明路口(西北側)","Taoyuan Dist.","Fufeng Park","Jianguo Rd./Kunming Rd." "","2023","桃園火車站(後站)","14","2","24.987795","121.314279","12","1","2023","桃園區","20240807014343","延平路26號對面人行道","Taoyuan Dist.","TRA Taoyuan Station (Rear)","No.26, Yanping Rd.(opposite)" "","2024","桃園建國公園","8","3","24.987418","121.317759","4","1","2024","桃園區","20240807014344","桃鶯路93號對面建國公園旁人行道","Taoyuan Dist.","Taoyuan Jianguo Park","No.93, Taoying Rd. (opposite)" "","2025","桃園陽明高中","20","1","24.980404","121.303296","19","1","2025","桃園區","20240807014339","德壽街8號前方人行道","Taoyuan Dist.","Taoyuan Municipal Yang Ming High School","No.8, Deshou St." "","2026","夢幻公園","12","2","24.962541","121.261596","10","1","2026","中壢區","20240807014334","榮安十三街榮民路口(西南側)","Zhongli Dist.","Dream Park","Rongan 13th St./Rongmin Rd." "","2027","內壢自強公園","12","2","24.967686","121.259279","9","1","2027","中壢區","20240807014333","強國路46號旁自強公園側人行道","Zhongli Dist.","Neili Ziqiang Park","No.46, Qiangguo Rd." "","2029","元智大學","22","3","24.970346","121.263249","18","1","2029","中壢區","20240807014319","遠東路135號(面元智大學左側人行道)","Zhongli Dist.","Yuan Ze University","No.135, Yuandong Rd." "","2030","同德國中","10","7","25.016130","121.293908","2","1","2030","桃園區","20240807014340","南平路479號對面同德國中旁人行道","Taoyuan Dist.","Tongde Junior High School","No.479, Nanping Rd. (opposite)" "","2031","桃園展演中心(同德六街)","12","2","25.016551","121.299970","10","1","2031","桃園區","20240807014340","同德六街藝文二街口東南側廣場","Taoyuan Dist.","Taoyuan Arts Center(Tongde 6th St.)","Tongde 6th St./Yiwen 2nd St." "","2032","東溪綠園","16","10","24.993122","121.313558","6","1","2032","桃園區","20240807014344","成功路二段1號旁小公園","Taoyuan Dist.","Dongxi Greens","No.1, Sec. 2, Chenggong Rd." "","2033","桃園市立圖書館平鎮分館","12","1","24.940031","121.218322","11","1","2033","平鎮區","20240807014326","環南路三段88號右前方人行道","Pingzhen Dist.","Taoyuan Public Library Pingzhen Branch","No.88, Sec. 3, Huannan Rd." "","2034","新勢公園","10","3","24.950692","121.216686","7","1","2034","平鎮區","20240807014340","延平路一段181號對面新勢公園旁人行道","Pingzhen Dist.","Xinshi Park","No.181, Sec. 1, Yanping Rd.(opposite)" "","2035","三民運動公園","16","4","25.000577","121.319691","11","1","2035","桃園區","20240807014323","三民路一段200號前方人行道","Taoyuan Dist.","Sanmin Sports Park","No.200, Sec. 1, Sanmin Rd." "","2037","桃園展演中心(南平路)","10","3","25.018038","121.298235","6","1","2037","桃園區","20240807014335","南平路336號對面人行道","Taoyuan Dist.","Taoyuan Arts Center (Nanping Rd.)","No.336, Nanping Rd.(opposite)" "","2038","國強公園","14","2","24.993077","121.289327","11","1","2038","桃園區","20240807014337","國強一街益壽一街口(東北側人行道)","Taoyuan Dist.","Guochiang Park","Guociang 1st St./Yishou 1st St." "","2039","新埔公園","8","2","25.015195","121.303725","5","1","2039","桃園區","20240807014341","同安街203號對面人行道","Taoyuan Dist.","Xinpu Park","No.203, Tong’an St.(opposite)" "","2041","桃園市立圖書館大林分館","12","7","24.977812","121.321076","5","1","2041","桃園區","20240807014328","樹仁二街37號後方人行道","Taoyuan Dist.","Taoyuan Public Library Dalin Branch","No.37, Shuren 2nd St." "","2042","桃園火車站(前站)","14","4","24.989618","121.313022","10","1","2042","桃園區","20240807014326","中正路1號面火車站右方人行道","Taoyuan Dist.","TRA Taoyuan Station (Front)","No.1, Zhongzheng Rd." "","2043","瑞慶公園","12","4","25.019129","121.292954","8","1","2043","桃園區","20240807014343","中埔一街362號對面瑞慶公園旁人行道","Taoyuan Dist.","Ruiching Park","No.362, Zhongpu 1st St.(opposite)" "","2044","中寧公園","6","3","25.009993","121.299560","3","1","2044","桃園區","20240807014343","同德二街177號對面中寧公園旁人行道","Taoyuan Dist.","Zhongning Park","No.177, Tongde 2nd St.(opposite)" "","2045","陽明運動公園","8","2","24.982285","121.308126","5","1","2045","桃園區","20240807014341","介壽路199號前方人行道","Taoyuan Dist.","Yangming Sports Park","No.199, Jieshou Rd." "","2046","大業國小","12","4","25.006896","121.314760","7","1","2046","桃園區","20240807014324","民光東路280號對面人行道","Taoyuan Dist.","Da Yie Elementary School","No.280, Minguang E. Rd.(opposite)" "","2047","大有國中","12","2","25.008585","121.319869","10","1","2047","桃園區","20240807014342","大有路民光東路口西北側人行道","Taoyuan Dist.","Da You Junior High School","Dayou Rd./Minguang E. Rd." "","2049","吉林路吉利六街口","10","4","24.982900","121.250406","6","1","2049","中壢區","20240807014322","吉林路吉利六街口東南側人行道","Zhongli Dist.","Jilin Rd. & Jili 6th St. Intersection","Jilin Rd./Jili 6th St." "","2054","桃園龍岡公園","8","2","24.99039","121.281064","5","1","2054","桃園區","20240807014331","國豐一街101號對面龍岡公園旁人行道","Taoyuan Dist.","Taoyuan Longgang Park","No.101, Guofeng 1st St.(opposite)" "","2055","桃園龍鳳公園","20","4","24.989688","121.278943","16","1","2055","桃園區","20240807014329","國豐五街51號對面龍鳳公園旁人行道","Taoyuan Dist.","Taoyuan Longfeng Park","No.51, Guofeng 5rd St.(opposite)" "","2056","桃園市政府文化局","12","1","24.994184","121.300537","11","1","2056","桃園區","20240807014322","縣府路21號面文化局左側路側","Taoyuan Dist.","Departmaent of Cultural Affairs, Taoyuan","No.21, Xianfu Rd." "","2057","成功春日路口","22","6","24.994177","121.317130","16","1","2057","桃園區","20240807014318","成功路二段春日路口東南側人行道","Taoyuan Dist.","Chenggong & Chunri Rd. Intersection","Chenggong Rd./Chunri Rd." "","2059","忠福廣場","10","2","24.971805","121.227697","6","1","2059","中壢區","20240807014318","南園二路292號對面忠福廣場旁人行道","Zhongli Dist.","Zhongfu Square","No.292, Nanyuan 2nd Rd.(opposite)" "","2060","健行科技大學","16","1","24.946778","121.229011","15","1","2060","中壢區","20240807014340","健行路229號(商學大樓後人行道)","Zhongli Dist.","Chien Hsin University of Science and Technology","No.229, Jianxing Rd." "","2061","啟英高中","12","1","24.975610","121.234553","11","1","2061","中壢區","20240807014323","西園路76號對面啟英高中旁人行道","Zhongli Dist.","Chi-Ying Senior High School","No.76, Xiyuan Rd.(opposite)" "","2062","內壢文化公園","10","4","24.979567","121.250102","5","1","2062","中壢區","20240807014317","文化路長春二路西北側公園旁人行道","Zhongli Dist.","Neili Wenhua Park","Wenhua Rd./Changchun 2nd Rd." "","2063","萬能科技大學","20","12","24.992749","121.229925","8","1","2063","中壢區","20240807014328","萬能路1號(萬芳樓後方人行道)","Zhongli Dist.","Vanung University of Technology","No.1, Changchun 2nd Rd." "","2064","中德里休閒廣場","18","15","24.962275","121.293209","3","1","2064","桃園區","20240807014320","國際一路國際二路口西南側停車場","Taoyuan Dist.","Zhongde Square","Guoji 1st Rd./Guoji 2nd Rd." "","2065","桃園巨蛋","18","2","24.995393","121.323924","16","1","2065","桃園區","20240807014317","三民路100號對面人行道","Taoyuan Dist.","Taoyuan Arena","No.100, Sanmin Rd.(opposite)" "","2066","龜山區公所","10","2","24.992532","121.337660","8","1","2066","龜山區","20240807014320","中山街26號前方人行道","Guishan Dist.","Civil Affairs Office of Guishan District","No.26, Zhongshan St." "","2067","龜山國中","12","0","24.997536","121.339485","0","0","2067","龜山區","20240807014333","自強西路66號前方人行道","Guishan Dist.","Guishan Junior High School","No.66, Ziqiang W. Rd." "","2068","西門綠園","10","1","24.993968","121.303884","9","1","2068","桃園區","20240807014340","文康街61號對面人行道","Taoyuan Dist.","Ximen Greens","No.61, Wenkang St.(opposite)" "","2069","衛福部桃園醫院","10","2","24.979389","121.268981","8","1","2069","桃園區","20240807014327","龍壽街60號對面人行道","Taoyuan Dist.","Taoyuan General Hospital, Ministry of Health and Welfare","No.60, Longshou St.(opposite)" "","2070","環中東永福路口","10","0","24.962030","121.255168","0","0","2070","中壢區","20240807014329","環中東路325號前人行道","Zhongli Dist.","Huanzhong E. & Yongfu Rd. Intersection","No.325, Huanzhong E. Rd." "","2079","忠孝兒童遊樂場","12","1","24.986849","121.294739","9","1","2079","桃園區","20240807014323","宏昌七街泰昌三街西南側廣場","Taoyuan Dist.","Zhongxiao Children's Playground","Hongchang 7th St./Taichang 3rd St." "","2080","桃園市政府","18","3","24.992799","121.301680","15","1","2080","桃園區","20240807014340","縣府路3號對面廣場","Taoyuan Dist.","Taoyuan City Government","No.3, Xianfu Rd.(opposite)" "","2082","中壢新興公園","8","5","24.945265","121.226050","3","1","2082","中壢區","20240807014333","林森路90號前方人行道","Zhongli Dist.","Zhongli Xinxing Park","No.90, Linsen Rd." "","2083","桃園市立圖書館內壢分館","14","1","24.977945","121.257972","12","1","2083","中壢區","20240807014325","光華三街10號前方人行道","Zhongli Dist.","Taoyuan Public Library Neili Branch","No.10, Guanghua 3rd St." "","2085","中央大學依仁堂","14","2","24.967119","121.190958","11","1","2085","中壢區","20240807014334","中大路300號(松苑餐廳前方廣場)","Zhongli Dist.","Office of Physical Education, NCU","No.300, Zhongda Rd." "","2095","璟都江山社區","8","6","25.0023","121.342803","2","1","2095","龜山區","20240807014332","光峰路131巷6號前方人行道","Guishan Dist.","Jingdu-Jiangshan Community","No.6, Ln. 131, Guangfeng Rd." "","2106","篤行公園","8","3","24.958288","121.263280","5","1","2106","中壢區","20240807014328","永福路47號對面人行道","Zhongli Dist.","Duxing Park","No.47, Yongfu Rd.(opposite)" "","2107","桃園市政府警察局桃園分局","10","5","25.000418","121.299434","4","1","2107","桃園區","20240807014321","永安路375號旁人行道","Taoyuan Dist.","Taoyuan Police Department Taoyuan Branch","No.375, Yong’an Rd." "","2108","慈文國中","12","6","25.008916","121.301842","5","1","2108","桃園區","20240807014320","中正路835號前方人行道","Taoyuan Dist.","Tzu Wen Junior High School","No.835, Zhongzheng Rd." "","2109","同新公園","12","4","25.012389","121.305633","7","1","2109","桃園區","20240807014323","同安街經國路251巷口(東南側人行道)","Taoyuan Dist.","Tongxin Park","Tong’an St./Ln. 251, Jingguo Rd." "","2110","桃園永康公園","8","5","25.001890","121.302925","3","1","2110","桃園區","20240807014347","力行路中正五街口東南側人行道","Taoyuan Dist.","Taoyuan Yongkang Park","Lixing Rd./Zhongzheng 5th St." "","2111","桃園市立游泳池","10","1","24.989458","121.292088","9","1","2111","桃園區","20240807014331","吉昌街86號(對面人行道)","Taoyuan Dist.","Taoyuan City Swimming Pool","No.86, Jichang St.(opposite)" "","2112","寶山公園","14","6","25.013132","121.313903","8","1","2112","桃園區","20240807014323","民有三街517號對面公園旁人行道","Taoyuan Dist.","Baoshan Park","No.517, Minyou 3rd St.(opposite)" "","2113","國強一街上海路口","12","8","24.992059","121.282126","4","1","2113","桃園區","20240807014317","國強一街上海路口西北側高架橋下廣場","Taoyuan Dist.","Guochiang 1st St. & Shanghai Rd. Intersection","Guoqiang 1st St./Shanghai Rd." "","2114","青溪公園","10","4","25.000959","121.317024","6","1","2114","桃園區","20240807014337","自強路217號前方人行道","Taoyuan Dist.","Qingxi Park","No.217, Ziqiang Rd." "","2115","甲蟲公園","8","3","24.977542","121.252751","5","1","2115","中壢區","20240807014339","元生二街元生三街口西北側公園旁人行道","Zhongli Dist.","Jiachong Park","Yuansheng 2nd St./Yuansheng 3rd St." "","2117","新榮公園","8","4","24.945991","121.214981","4","1","2117","平鎮區","20240807014340","振興西路新德街口西北側公園旁人行道","Pingzhen Dist.","Xinrong Park","Zhenxing W. Rd./Xinde St." "","2120","龜山國小","14","0","24.994765","121.340557","14","1","2120","龜山區","20240807014325","大同路23號對面人行道","Guishan Dist.","Guishan Elementary School","No.23, Datong Rd.(opposite)" "","2123","大同公園","12","0","24.989332","121.342481","11","1","2123","龜山區","20240807014339","德明路77巷65號對面公園旁人行道","Guishan Dist.","Datong Park","No.65, Ln. 77, Deming Rd.(opposite)" "","2127","桃園龍山國小","8","5","24.981988","121.271035","1","1","2127","桃園區","20240807014324","龍祥街94號對面人行道","Taoyuan Dist.","Taoyuan Long Shan Elementary School","No.94, Longxiang St.(opposite)" "","2140","桃園中正公園(同安街)","14","5","25.023701","121.297919","7","1","2140","桃園區","20240807014320","同安街601號旁公園人行道","Taoyuan Dist.","Taoyuan Zhongzheng Park (Tung'an St.)","No.601, Tong’an St." "","2141","建新公園","10","4","24.979206","121.310324","5","1","2141","桃園區","20240807014315","陽明十二街25號對面公園旁人行道","Taoyuan Dist.","Jianxin Park","No.25, Yangming 12th St.(opposite)" "","2143","平鎮和平公園","8","6","24.947529","121.221136","2","1","2143","平鎮區","20240807014315","莒光路39號對面路側","Pingzhen Dist.","Pingzhen Heping Park","No.39, Juguang Rd.(opposite)" "","2149","黎明公園","6","2","24.939894","121.256127","4","1","2149","中壢區","20240807014321","同慶路榮民南路口西南側公園前方路側","Zhongli Dist.","Liming Park","Tongqing Rd./Rongmin S. Rd." "","2150","興仁公園","10","2","24.966256","121.263548","8","1","2150","中壢區","20240807014339","興仁路二段120號對面公園內人行道","Zhongli Dist.","Xinren Park","No.120, Sec. 2, Xingren Rd.(opposite)" "","2151","自立新村(榮安一街)","10","1","24.965432","121.253381","7","1","2151","中壢區","20240807014320","榮安一街自立三街2巷北側人行道","Zhongli Dist.","Zili Community (Rong'an 1st St.)","Rong’an 1st St./Ln. 2, Zili 3rd St." "","2152","晉元路仁德一街口","6","3","24.950926","121.261293","2","1","2152","中壢區","20240807014330","仁德一街28-4號對面路側","Zhongli Dist.","Jinyuan Rd. & Rende 1st St. Intersection","No.28-4, Rende 1st St.(opposite)" "","2153","龍和公園","8","1","24.934221","121.244805","7","1","2153","中壢區","20240807014330","龍和三街290號(活動中心旁公園人行道)","Zhongli Dist.","Longhe Park","No.290, Longhe 3rd St." "","2154","萬壽中興路口","12","1","24.994938","121.337264","11","1","2154","龜山區","20240807014315","萬壽路二段981號對面停車場","Guishan Dist.","Wanshou & Zhongxin Rd. Interstction","No.981, Sec. 2, Wanshou Rd.(opposite)" "","2155","大同西路簡易公園","8","2","24.988164","121.304047","6","1","2155","桃園區","20240807014136","大同西路7巷4號對面公園","Taoyuan Dist.","Datong W. Rd. Simple Park","No.4, Ln. 7, Datong W. Rd.(opposite)" "","2156","霖園兒童公園","18","6","24.986079","121.287879","11","1","2156","桃園區","20240807014328","國鼎二街132號(對面公園東側人行道)","Taoyuan Dist.","Linyuan Children's Park","No.132, Guoding 2nd St.(opposite)" "","2157","家樂福經國店","12","1","25.016383","121.30502","11","1","2157","桃園區","20240807014324","天祥三街10號對面人行道","Taoyuan Dist.","Carrefour Jingguo Branch","No.10, Tianxiang 3rd St.(opposite)" "","2158","玉山公園","14","4","24.982621","121.301174","10","1","2158","桃園區","20240807014324","南豐二街120號斜前方公園側","Taoyuan Dist.","Yushan Park","No.120, Nanfeng 2nd St.(opposite)" "","2159","會稽國中","8","3","25.016115","121.313437","5","1","2159","桃園區","20240807014328","大興路222號(面會稽國中校門左側人行道)","Taoyuan Dist.","Kuai Ji Junior High School","No.222, Daxing Rd.(opposite)" "","2165","經國國中","8","2","25.0217","121.303596","6","1","2165","桃園區","20240807014329","經國路276號(面經國國中校門左側人行道)","Taoyuan Dist.","Jingguo Junior High School","No.276, Jingguo Rd.(opposite)" "","2169","風禾公園","16","6","25.000991","121.289893","10","1","2169","桃園區","20240807014320","文中二路慈文路口東北側人行道","Taoyuan Dist.","Fenghe Park","Wenzhong 2nd Rd./Ciwen Rd." "","2170","財政部北區國稅局桃園分局","6","2","25.003782","121.320733","3","1","2170","桃園區","20240807014328","三元街150號","Taoyuan Dist.","National Taxation Bureau of the Nothern Area, Ministry of Finance (Taoyuan Branch)","No.150, Sanyuan St." "","2171","桃園觀光夜市旅客服務中心","12","1","25.004089","121.308517","10","1","2171","桃園區","20240807014342","正康三街8號旁停車場","Taoyuan Dist.","Taoyuan Tourist Night Market Service Center","No.8, Zhengkang 3rd St." "","2176","常樂公園","10","1","24.976881","121.250856","9","1","2176","中壢區","20240807014332","文化二路237-243號旁公園人行道","Zhongli Dist.","Changle Park","No.237-243, Wenhua 2nd Rd." "","2177","金鋒太子","6","1","24.945911","121.248625","5","1","2177","中壢區","20240807014338","金鋒四街50巷2號對面","Zhongli Dist.","Jinfeng Prince","No.2, Ln. 50, Jinfeng 4th St.(opposite)" "","2178","華愛兒童公園","8","1","24.952303","121.259724","7","1","2178","中壢區","20240807014318","華愛街35號對面公園旁人行道","Zhongli Dist.","Hua-Ai Children's Park","Hua-Ai Children's Park" "","2181","過嶺國中","6","2","24.960203","121.175517","3","1","2181","中壢區","20240807014321","松智路過嶺路一段路口人行道","Zhongli Dist.","Guo Ling Junior High School","Songzhi Rd./Sec. 1, Guoling Rd." "","2182","南方莊園","6","1","24.967284","121.177906","5","1","2182","中壢區","20240807014324","樹籽路8號對面停車場旁人行道","Zhongli Dist.","Nanfang Park","No.8, Shuzi Rd.(opposite)" "","2184","陸光河濱公園","20","7","24.99485","121.330472","13","1","2184","龜山區","20240807014344","同心二路19號對面公園內人行道","Guishan Dist.","Luguang Riverside Park","No.19, Tongxin 2nd Rd.(opposite)" "","2185","山福里集會所","8","1","24.988965","121.331988","7","1","2185","龜山區","20240807014333","中興路152號旁停車場","Guishan Dist.","Shanfu Civil Activity Center","No.152, Zhongxing Rd." "","2186","大檜溪公園","6","2","25.013781","121.31682","4","1","2186","桃園區","20240807014337","興一街65巷50號(地下停車場出入口旁公園)","Taoyuan Dist.","Dakuaixi Park","No.50, Ln. 65, Xing 1st St." "","2204","溫州公園","8","3","25.008","121.29825","5","1","2204","桃園區","20240807014345","大興西路二段139巷173號旁公園人行道","Taoyuan Dist.","Wenzhou Park","No.173, Ln. 139, Sec. 2, Daxing W. Rd." "","2209","楓樹公園","22","2","25.00465","121.34496","18","1","2209","龜山區","20240807014216","楓樹一街19號對面公園","Guishan Dist.","Fengshu park","No.19, Fengshu 1st St.(opposite)" "","2213","龍安公園","6","2","24.99153","121.27619","4","1","2213","桃園區","20240807014338","國豐七街122號對面公園","Taoyuan Dist.","Longan Park","No.122, Guofeng 7th St.(oppsite)" "","2221","大江購物中心","12","1","25.00127","121.22939","11","1","2221","中壢區","20240807014341","中園路二段501號前方人行道","Zhongli Dist.","Metrowalk","No.501, Sec. 2, Zhongyuan Rd." "","2225","永定二保定三街89巷口","8","2","24.99746","121.298213","5","1","2225","桃園區","20240807014329","永定二街保定三街89巷口公園內","Taoyuan Dist.","Yongding 2nd & Ln. 89, Baoding 3rd St. Intersection","Yongding 2nd St./Ln. 89, Baoding 3rd St." "","2228","龍岡圓環","6","3","24.926002","121.244046","3","1","2228","中壢區","20240807014336","龍東路龍岡路三段路口","Zhongli Dist.","Longgang Roundabout","Longdong Rd./Sec. 3, Longgang Rd." "","2229","成功國小","6","2","24.999511","121.306346","4","1","2229","桃園區","20240807014328","中正三街與長春路口","Taoyuan Dist.","Chenggong Elementary School","Zhongzheng 3rd St./ Changchun Rd." "","2233","內厝社區活動中心","16","5","24.989317","121.179425","10","1","2233","中壢區","20240807014225","中正路四段112號前方路側","Zhongli Dist.","Neicuo Activity Center","No.112, Sec. 4, Zhongzheng Rd." "","2235","普忠路770巷口","10","1","24.954231","121.251253","9","1","2235","中壢區","20240807014333","普忠路605號對面人行道","Zhongli Dist.","Ln. 770, Puzhong Rd.","No.605, Puzhong Rd.(opposite)" "","2237","南崁溪自行車道(長壽路口)","18","3","25.001722","121.347685","13","1","2237","龜山區","20240807014338","半嶺段 44地號","Guishan Dist.","Nankan River Bikeway ( Changshou Rd. )","No. 44 of Banling Section" "","2239","桃園區南平運動中心","12","4","25.021357","121.306156","8","1","2239","桃園區","20240807014318","南平路23號對面人行道","Taoyuan Dist.","Taoyuan District Naiping Sports Center","No.23, Nanping Rd." "","2243","中德里市民活動中心","14","3","24.977868","121.287946","11","1","2243","桃園區","20240807014344","國際路一段與國際路一段678巷口","Taoyuan Dist.","Zhongde Civil Activity Center","Sec. 1, Guoji Rd/Ln. 678, Sec. 1, Guoji Rd." "","2245","向陽公園","20","5","24.997013","121.29609","9","1","2245","桃園區","20240807014318","正光路186巷50號對面人行道","Taoyuan Dist.","Xiangyang Park","No.50, Ln. 186, Zhengguang Rd.(opposite)" "","2246","國豐公園","12","2","24.987028","121.279348","8","1","2246","桃園區","20240807014340","龍鳳三街65巷2號對面公園","Taoyuan Dist.","Guofeng Park","No.2, Ln. 65, Longfeng 3rd St." "","2248","義興公園","8","1","24.949106","121.209494","7","1","2248","平鎮區","20240807014324","義興街55號對面公園人行道","Pingzhen Dist.","Yixing Park","No.55, Yixing St.(opposite)" "","2251","至善綠園","8","2","24.940354","121.249948","5","1","2251","中壢區","20240807014318"," 龍昌路32號對面公園","Zhongli Dist.","Zhishan Greens","No.32, Longchang Rd.(opposite)" "","2253","中鑄公園","8","1","24.968527","121.250653","6","1","2253","中壢區","20240807014345","中華路一段619巷31號對面公園","Zhongli Dist.","Zhongzhu Park ","No.31, Ln. 619, Sec. 1, Zhonghua Rd." "","2256","北門國小","6","2","25.007437","121.306712","4","1","2256","桃園區","20240807014320","大連一街103號對面人行道","Taoyuan Dist.","Bei Men Elementary School","No.103, Aly. 825, Dalian 1st St." "","2258","大魯閣(中正路)","16","4","25.030046","121.293195","10","1","2258","桃園區","20240807014349","中正北路2巷16號對面廣場","Taoyuan Dist.","TAROKO SPORTS (Zhongzheng Rd.)","No.16, Ln. 2, Jhongjheng N. Rd." "","2259","同安國小","8","2","25.021257","121.297788","6","1","2259","桃園區","20240807014327","同德十一街33號對面人行道","Taoyuan Dist.","Tong An Elementary School","No.33, Tongde 11th St." "","2260","文昌國中","10","5","25.010094","121.308003","5","1","2260","桃園區","20240807014339","民生路729號前方人行道","Taoyuan Dist.","Wen Chang Junior High School","No.729, Minsheng Rd." "","2274","龍興國中","8","1","24.937841","121.236378","7","1","2274","中壢區","20240807014329","龍勇路100號前方人行道","Zhongli Dist.","Longxing Junior High School","No.100, Longyong Rd." "","2277","龍安里集會所","18","3","24.93149","121.25766","15","1","2277","中壢區","20240807014331","龍江路99號前方廣場","Zhongli Dist.","Longan Activity Center","No.99, Longjiang Rd." "","2280","國信公園","18","3","24.994389","121.286743","12","1","2280","桃園區","20240807014340","國信街1號對面公園","Taoyuan Dist.","Guosin Park","No.1, Guoxin St.(opposite)" "","2281","經國轉運站(經國路)","10","2","25.02986","121.3008","8","1","2281","桃園區","20240807014319","水汴頭段14地號園道內","Taoyuan Dist.","JingGuo Bus Station","No.14 of Shubiantou Section " "","2282","中壢仁德公園","22","2","24.953347","121.266529","19","1","2282","中壢區","20240807014325","崁頂路崁頂路1401巷口旁人行道","Zhongli Dist.","Zhongli Rende Park","Ln. 1401, Kanding Rd./Kanding Rd." "","2284","龍慈龍和三街口","10","1","24.940105","121.243768","8","1","2284","中壢區","20240807014345","龍慈路與龍和三街旁路側","Zhongli Dist.","Longci & Longhe 3rd st. Intersection","Longcih Rd./Longhe 3rd St." "","2285","功學社新村","10","3","24.954173","121.256291","7","1","2285","中壢區","20240807014334","功學路156號前方空地","Zhongli Dist.","Gongxueshexincun","No.156, Gongxue Rd." "","2289","台北榮民總醫院桃園分院","12","2","25.002531","121.323988","9","1","2289","桃園區","20240807014322","成功路三段三聖路口旁人行道","Taoyuan Dist.","Taipei Veterans General Hospital Taoyuan Branch","Sec. 3, Chenggong Rd./Sansheng Rd." "","2295","山頂里集會所","8","2","24.986224","121.33042","6","1","2295","龜山區","20240807014338","明興街36號旁人行道及路側","Guishan Dist.","Shanding Activity Center","No.36, Mingsing St." "","2296","臻愛家社區","8","4","24.987167","121.324152","4","1","2296","龜山區","20240807014332","建國東路31號旁人行道","Guishan Dist.","ZhenAiJia Community","No.31, Jianguo E. Rd." "","2299","水汴頭音樂廣場","16","1","25.023323","121.305316","15","1","2299","桃園區","20240807014329","鹽庫西街70號對面空地","Taoyuan Dist.","Shuibiantou Music Square","No.70, Yanku W. St.(opposite)" "","2300","桃智路廣豐三街口","8","6","24.964802","121.295471","2","1","2300","桃園區","20240807014319","桃智路31號前外側人行道及路側","Taoyuan Dist.","Taozhi Rd. & Guangfeng 3rd St. Intersection","No.31, Taozhi Rd." "","2302","普忠榮民南路口","18","2","24.949502","121.256339","15","1","2302","中壢區","20240807014323","普忠路1168號前人行道","Zhongli Dist.","Puzhong & Rongmin S. Rd. Intersection","Puzhong Rd./Rongmin S. Rd." "","2304","平鎮市廿公園","8","1","24.942799","121.218962","7","1","2304","平鎮區","20240807014345","德育路二段104號對向人行道上","Pingzhen Dist.","Pingzhen No.20 Park","No.104, Sec. 2, Deyu Rd.(opposite)" "","2305","復興三民路口","16","3","24.989258","121.306696","10","1","2305","桃園區","20240807014339","復興路308號旁停車場","Taoyuan Dist.","Fuxing Rd. & Sanmin Rd. Intersection","No.308, Fusing Rd." "","2308","中山路裕和街口","14","5","24.980741","121.274497","9","1","2308","桃園區","20240807014320","中山路1306號旁人行道","Taoyuan Dist.","Zhongshan Rd. & Yuhe St. Intersection","No.1306, Zhongshan Rd." "","2315","中路兒2公園","6","0","25.007402","121.290432","6","1","2315","桃園區","20240807014322","永安路765巷8號對面公園","Taoyuan Dist.","Zhonglu Second Children's Park","No.8, Ln. 765, Yong’an Rd.(opposite)" "","2317","新明國中","10","1","24.956212","121.21231","9","1","2317","中壢區","20240807014328","民族路109號對面人行道","Zhongli Dist.","Hsin Ming Junior High School","No.109, Minzu Rd.(opposite)" "","2319","春日路民富九街口","8","1","25.007974","121.311688","7","1","2319","桃園區","20240807014328","春日路618號前方人行道","Taoyuan Dist.","Chunri Rd. & Minfu 9th St. Intersection","No.168, Chunri Rd." "","2321","過嶺廣場","8","1","24.96035","121.164511","6","1","2321","中壢區","20240807014343","松勤路13號對面公園","Zhongli Dist.","Guoling Square","No.13, Songqin Rd(opposite)" "","2322","藝文一街大興西路口","12","3","25.013286","121.301557","7","1","2322","桃園區","20240807014332","藝文一街6號對面廣場","Taoyuan Dist.","Yiwen 1st St. & Daxing W. Rd. Intersection","No.6, Yiwen 1st St.(opposite)" "","2323","中正莊敬路口","8","3","25.023593","121.294916","5","1","2323","桃園區","20240807014320","中正路1379號前方人行道","Taoyuan Dist.","Jhongjheng Rd. & Zhuangjing Rd. Intersection","No.1379, Jhongjheng Rd." "","2325","光榮光峰路口","10","2","25.006866","121.343263","5","1","2325","龜山區","20240807014320","光峰路299號旁公園","Guishan Dist.","Guangrong Rd.& Guangfeng Rd.Intersection","No.299, Guangfeng Rd." "","2326","南門公園","10","6","24.991347","121.306248","4","1","2326","桃園區","20240807014324","文化街64號對面公園","Taoyuan Dist.","Nanmen Park","No.64, Wunhua St.(opposite)" "","2333","介壽公園","8","1","24.979016","121.306013","7","1","2333","桃園區","20240807014345","介壽段16地號公園","Taoyuan Dist.","Jieshou Park","No.16 of Jieshou Section" "","2334","桃園高中","14","1","24.997204","121.324855","12","1","2334","桃園區","20240807014341","成功路三段8號旁邊空地","Taoyuan Dist.","Taoyuan Senior High School","No.8, Sec. 3, Chenggong Rd." "","2336","福州橋","8","1","24.968299","121.234777","7","1","2336","中壢區","20240807014330","福州二街513號對面步道","Zhongli Dist.","Fuzhou Bridge","No.513, Fujhou 2nd St.(opposite)" "","2337","陽明運動公園(建新街)","12","2","24.980992","121.311016","9","1","2337","桃園區","20240807014328","建新街163號對面公園籃球場旁","Taoyuan Dist.","Yangming Sports Park(Jianxin St.)","No.163, Jiansin St.(opposite)" "","2339","貿商社區","16","3","24.990411","121.334721","11","1","2339","龜山區","20240807014330","自強南路自強南路301巷口","Guishan Dist.","Maoshang Community","Zihciang S. Rd./Ln.301 Zihciang S. Rd." "","2340","平鎮棒球場","8","2","24.946102","121.219066","5","1","2340","平鎮區","20240807014324","德育路240號旁人行道","Pingzhen Dist.","Baseball Field of Pingzhen Dist.","No.240, Deyu Rd." "","2347","同安親子公園","8","2","25.017355","121.302291","6","1","2347","桃園區","20240807014324","同安街358號對面公園","Taoyuan Dist.","Tong An Parent-child Park","No.358, Tong’an St.(opposite)" "","2352","中信公園","16","1","24.990791","121.286262","15","1","2352","桃園區","20240807014339","德華街92號對面路側","Taoyuan Dist.","Zhong Xin Park","No.92, Dehua St.(opposite)" "","2353","桃園建國國小","10","3","24.983616","121.31578","7","1","2353","桃園區","20240807014330","昆明路120號對面人行道","Taoyuan Dist.","Taoyuan Jian-Guo Elementary School","No.120, Kunming Rd.(opposite)" "","2355","桃園市立田徑場","14","8","24.99277","121.32457","6","1","2355","龜山區","20240807014341","萬壽路二段1379號對面人行道","Guishan Dist.","Taoyuan Municipal Stadium","No.1379, Sec. 2, Wanshou Rd.(opposite)" "","2360","下埔子溪綠地(天祥七街)","10","3","25.023509","121.300758","7","1","2360","桃園區","20240807014343","天祥七街72號旁公園","Taoyuan Dist.","Green space of Xiapuzi river(Tiansiang 7th St.)","No.72, Tiansiang 7th St." "","2362","仁愛兒童公園","12","1","24.985429","121.291219","9","1","2362","桃園區","20240807014330","宏昌九街17號對面公園","Taoyuan Dist.","Renai Children's Park","No.17, Hongchang 9th St.(opposite)" "","2366","昭揚建築(水秀公園)","8","4","24.99845","121.291143","4","1","2366","桃園區","20240807014344","力行路688巷11號旁公園","Taoyuan Dist.","Sound Rise Construction (Shueisiou Park)","No.11, Ln. 688, Lising Rd." "","2380","中壢區殯葬服務中心","16","2","24.976932","121.227558","14","1","2380","中壢區","20240807014329","培英路289號前人行道","Zhongli Dist.","Office of Funeral Services,Zhongli","No.289, Peiying Rd." "","2390","復興路朝陽街口","10","6","24.990843","121.31611","3","1","2390","桃園區","20240807014325","復興路51號旁停車場","Taoyuan Dist.","Fuxing Rd. & Zhaoyang St. Intersection","No.51, Fusing Rd." "","2391","龍園公園","8","4","24.986313","121.274887","4","1","2391","桃園區","20240807014328","中山路1216巷公園旁","Taoyuan Dist.","Ryuen Park","Ln. 1216, Zhongshan Rd." "","2395","東埔公園","10","4","25.005447","121.306878","6","1","2395","桃園區","20240807014341","正康二街/美光街口東北側","Taoyuan Dist.","Dongbu Park","Zhengkang 2nd St./Meiguang St. " "","2398","青溪國中","10","2","24.99752272","121.3201492","7","1","2398","桃園區","20240807014319","中山東路/中山東路126巷口(西南側)","Taoyuan Dist.","Ching-Hsi Junior High School","Zhongshan E Rd./Ln. 126, Zhongshan E Rd. (Southwest)" "","2403","大業路二段235巷口","8","4","25.0211","121.3103","4","1","2403","桃園區","20240807014344","大業路二段252號旁","Taoyuan Dist.","Ln. 235, Sec. 2, Daye Rd. Intersection","No. 252, Sec. 2, Daye Rd." "","2404","桃園煉油廠南門綠地","16","2","25.0263","121.3099","13","1","2404","桃園區","20240807014340","中油煉油廠南門綠地南側(鹽務路)","Taoyuan Dist.","CPC Nanmen Park","CPC Nanmen Park (South) (Yanwu Rd.)" "","2405","萬壽德育街口","24","3","24.992","121.3232871","18","1","2405","龜山區","20240807014324","萬壽路二段1427號東側停車場","Guishan Dist.","Wanshou Rd. & Deyu St. Intersection","No. 1427, Sec. 2, Wanshou Rd. (East)" "","2406","勞工教育大樓","20","1","25.0028","121.3096","17","1","2406","桃園區","20240807014338","民生路650號","Taoyuan Dist.","Labor Education Building","No. 650, Minsheng Rd." "","2408","法治守法路口","14","4","24.99274129","121.2964609","3","1","2408","桃園區","20240807014341","法治路4號對側","Taoyuan Dist.","Fazhi Rd. & Shoufa Rd. Intersection","No. 4, Fazhi Rd. (opposite)" "","2409","中路運動公園","16","5","25.0043","121.2946","10","1","2409","桃園區","20240807014342","溫州一路59號對側","Taoyuan Dist.","Zhonglu Sports Park","No. 59, Wenzhou 1st Rd. (opposite)" "","2416","幸福路水岸二街口","12","6","25.02798487","121.2966636","6","1","2416","桃園區","20240807014337","幸福路318號","Taoyuan Dist.","Xingfu Rd.& Shui'an 2nd St. Intersection","No. 318, Xingfu Rd."

ubike即時查詢

import csv with open('ubike.csv', 'r', encoding='utf-8') as file: result = csv.reader(file) result = list(result) user = input('請輸入要搜尋的站台: ') # 2: 中文站名 # 7: 空位 # 4: 剩餘可借數量 # 12: 中文地址 for row in result: if user in row[2]: print('站名:', row[2], ', 地址:', row[12]) print(' - 目前可借:', row[4]) print(' - 目前空位:', row[7]) print() # 用f-string的方式來格式化字串 print(f'站名: {row[2]}, 地址: {row[12]}') print(f' - 目前可借: {row[4]}') print(f' - 目前可還: {row[7]}') print()