161010陽朔銀子岩(Sony A5000錄影) by 儲蓄保險王 · 2016-11-13 https://youtu.be/DlVeCus0xlg https://youtu.be/5JtbyLvZa90 https://youtu.be/m6fOnKsRoc0 相關文章Python 高階函數三劍客: map、filter、reduce #以函數作為參數,或回傳函數的函數; list(filter(None, data)) ; reduce( lambda acc, x: acc + x, map(lambda x: x * 2, filter(lambda x: x % 2 == 0, numbers)))告別雜亂 XML!用 Python lxml 實現與 VS Code (Shift+Alt+F) 同級的「完美縮排」; from lxml import etree ; root = etree.fromstring(xml_bytes) #等效 root = etree.fromstring( xml_str.encode("utf-8") ); clean_xml_str = etree.tostring(root, pretty_print=True, encoding='unicode', xml_declaration=False) ; import xml.etree.ElementTree as ETPython: openai-whisper 語音轉文字(Speech To Text, STT)完整教學; pip install openai-whisper ; 如何購買openAI API key?如何生成字幕檔?Python: 如何檢查NaN(Not a Number)? 為什麼 np.nan == np.nan 返回 False? numpy.isnan() ; pandas.isna() ; pandas.isnull() ; np.isnan() 只能處理數值型資料(np.nan) ; pd.isna() , pd.isnull() 除了np.nan以外,還可以處理None, pd.DataFrame, pd.SeriesPython機器學習: 從特徵工程到數據擬合 PolynomialFeatures 與 numpy.polyfit 的全面比較與應用; from sklearn.preprocessing import PolynomialFeatures ; poly = PolynomialFeatures( degree=2, include_bias = True) ; X_poly = poly.fit_transform(X)Python如何用 Thread 讓程式同時做多件事? threading與 非同步 有何差別? import threading ; t1 = threading.Thread( target= worker, args= ("員工A",))Python 自省精簡示範:Frame 與 Code Object 入門; import inspect ; inspect.currentframe().f_code.co_name #動態取得function_namePython: 循環播放 英文單詞及其中文翻譯 ; from gtts import gTTSPython 正則表示法 中 ?: 與非捕獲群組的精要筆記, ?的多重語義:量詞0 or 1次, +?非貪婪量詞, ?:非捕獲群組, ?P<name> 命名捕獲組, ?= 正向前瞻 斷言, ?! 負向前瞻斷言
0 Python三維陣列 import numpy as np ; A = np.ones((2,3,4),dtype=int) ; B = np.zeros((2,3,4),dtype=int) 2022-08-23
0 Python: pandas.read_cev() 如何略過首n列,末m列? df_footer = pd.read_csv(‘test.txt’, skiprows=1, skipfooter=1, engine=’python’) #”Footer” 可以翻譯為 “頁腳”,通常指網頁底部的區域,包含版權聲明、聯絡資訊、隱私政策等相關資訊。 2023-03-11
近期留言