20140817_14_HX400V_宜蘭國際童玩節_俄羅斯 by 儲蓄保險王 · 2014-09-01 20140817_14_HX400V_宜蘭國際童玩節_俄羅斯 http://youtu.be/NXfPtBXVUk4 相關文章Python爬蟲: Selenium 的 expected_conditions 與 例外狀況; from selenium.webdriver.support import expected_conditions as EC ; from selenium.common.exceptions import NoSuchElementException, TimeoutExceptionPython x Ollama 超越傳統 OCR:使用MiniCPM-V 打造精準 AI 視覺辨識引擎 #CPM: Chinese Pre‑trained ModelExcel TQC考題208: Competition,自訂格式: [<=50]0; 頁面配置>版面設定 展開>頁首/頁尾Python 現代化路徑管理:用 pathlib 優雅搞定檔案「更名」與「移動」from pathlib import Path; Path.with_name("新檔名.副檔名") # 更改整個檔名(basename,含副檔名); Path.with_stem("新檔名") # 更改檔名主體(stem),保留原副檔名 ; Path.with_suffix(".新副檔名") # 更改副檔名(只影響最後一個 suffix)Python: 用 zip 將「起點列表」轉成區間結束點:從 starts 推導 end ; next() 與 迭代器iterPython, typing: 函數庫規格標註; def addTest(x:float, y:float) -> float: List[資料型態] Set[資料型態] Tuple[資料型態] Dict[str,value的資料型態] Union[資料型態1, 資料型態2] ,函式若有多個輸出值,其實是輸出一個tuplePython TQC考題708 詞典合併, dict1.update(dict2)json.loads(TEXT, object_pairs_hook = list) 教學 —— 怎麼看到「被蓋掉的 key」Python: pandas.read_excel(r"路徑\檔名.副檔名", header = None), 自動加上0,1...的欄標籤, DataFrame如何取某一直欄或橫列? 如何用 .iloc[bool_list] 取出判斷式為真的那一列? bool_list = list( df[0] == 0 ) ; bool_list = list(df[0].isin([0])) ; DataFrame如何顯示完整的資料? pandas.set_option ( "display.max_rows", None)
0 Python函數參數使用*list或*tuple(長度同參數個數), **dict(取value), *dict(取key)解包的差別? *第一個(不定長度)參數:打包為tuple,**最後一個(不定長度)選擇性參數:打包為dict,解包時dict的key要與參數的名稱一樣,而且不可多,不可少,解包與打包運算子 2022-09-04
0 Python 如何用pandas.Series.nsmallest() 找到n個與target差距最小的index?再從中找到距離idxmax最近的index?避免誤抓sidelobes的index? targetIdx = (serMean-target_value).abs().nsmallest(n).index.tolist() ;Series切片: .loc[標籤名1:標籤名2] (會含標籤名2) ; .iloc[位置1:位置2] (不含位置2) 2023-02-21
0 Python: 如何對pandas.DataFrame的所有columns做內插? from scipy.interpolate import interp1d ; f = interp1d(df.index, df.values, axis=0, fill_value = “extrapolate”) ; df.set_index() 將df中的某column設為index 2023-05-07
近期留言