20140817_09_HX400V_宜蘭國際童玩節_土耳其 by 儲蓄保險王 · 2014-08-27 20140817_09_HX400V_宜蘭國際童玩節_土耳其 https://www.youtube.com/watch?v=gnCYOBgK9Js 相關文章Python 遞迴教學:從巢狀結構抓取所有標題Python: 如何計算全文件詞頻(term frequency,簡稱TF)與逆向檔案頻率(Inverse Document Frequency,簡稱 IDF)?]*>.*?底下插入一個圖檔.*?</w:p>’, flags = re.DOTALL) ; new_xml, n = pattern.subn(”, xml, count=1)' title='Python正則替換:全面掌握 re.sub 與 re.subn 的差異與實戰 #substitute(替換); . 預設匹配「除\n以外的任意單一字元」; pattern = re.compile(r'<w:p[^>]*>.*?底下插入一個圖檔.*?</w:p>’, flags = re.DOTALL) ; new_xml, n = pattern.subn(”, xml, count=1)' loading='lazy' width=350 height=233 />Python正則替換:全面掌握 re.sub 與 re.subn 的差異與實戰 #substitute(替換); . 預設匹配「除\n以外的任意單一字元」; pattern = re.compile(r'<w:p[^>]*>.*?底下插入一個圖檔.*?</w:p>', flags = re.DOTALL) ; new_xml, n = pattern.subn('', xml, count=1)Python 正則表示法 中 ?: 與非捕獲群組的精要筆記, ?的多重語義:量詞0 or 1次, +?非貪婪量詞, ?:非捕獲群組, ?P<name> 命名捕獲組, ?= 正向前瞻 斷言, ?! 負向前瞻斷言Python: 如何從Excel檔的欄位字母(column letter)獲取index? from openpyxl.utils import column_index_from_string, get_column_letter ; 從DataFrame的column name獲取index: pandas.DataFrame.columns .get_loc( "column_name" )Python: 如何使用pandas.to_numeric ( df['numbers'], errors='coerce') 將非數值型資料轉為NaN? df['numbers'].describe() 簡述統計資料Python: 如何使用docx套件,在word文件中插入一個帶有超連結的文字? from docx.oxml.shared import OxmlElement, qn ; from docx.oxml import OxmlElement ; from docx.oxml.ns import qnPython爬蟲:BeautifulSoup的 .find_all() 與 .find() 與 .select('標籤名[屬性名1="屬性值1"][屬性名2="屬性值2"]') ; from bs4 import BeautifulSoup ; Live Server(可以預覽HTML的VS Code套件)Python爬蟲: 如何使用Selenium自動打開Chrome瀏覽器,連線在職訓練網,自動輸入資料查詢? #ID選擇器 .類選擇器; "#Form_KEYWORDS" 等效於'[id="Form_KEYWORDS"]' ; ".btn-orange" 等效於 '[class="btn-orange"]' ; 如何結合BeautifulSoup? soup = BeautifulSoup(driver.page_source,"html.parser")
0 Python: pandas.DataFrame串接; pandas.concat( [df1,df2] , axis=1, ignore_index=True) ; .append() 產生一個新的DataFrame; 插入欄 .insert() 改變原DataFrame 2022-11-29
0 Python: pandas.DataFrame (df) 的取值: df [單一字串] 或df [list_of_strings] 選取一個或多個columns; df [切片] 或 df [bool_Series] 選取多個rows #bool_Series長度同rows, index也需要同df.index ,可以使用.equals() 確認: df.index.equals(mask.index) 2025-04-20
0 Python串列 .reverse()反轉 .sort()排序 .remove(“指定元素”)移除 .pop(index)移除, 字串.replace(old,new) .lower()小寫 .upper()大寫 .title()首字大寫 2022-05-02
近期留言