發表文章

目前顯示的是 5月, 2024的文章

黃詩閔Lambda匿名函式google colaboratory

圖片
def x(m,n): # 定義自訂函數x newList = [] for i in m: #迴圈將m的元素每個都執行 newList.append(n(i)) return newList #傳回去 m=['串列','黃詩閔','好的','所以哩','安靜'] n=lambda y:y+'好學生' print(x(m,n)) for i in x(m,n): print(i) 教學影片

黃詩閔GUI計算機eval函數比較美國與印度程式碼

圖片

黃詩閔Python建構constructor視窗%d控制輸出格式

圖片

黃詩閔Python圖形使用者介面

圖片
\ 405單元 406單元