潘立倫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)

google機器學習實驗

https://colab.research.google.com/

留言

教學影片


 

張量Tensor計算

iframe=frame框 

留言

這個網誌中的熱門文章

價差策略與選擇權理論價格

金三甲期末考重要題庫與額未加分作業