20140817_00_HX400V_宜蘭國際童玩節_台灣 by 儲蓄保險王 · 2014-08-23 20140817_00_HX400V_宜蘭國際童玩節_台灣 http://youtu.be/Bx2ebfztcY8 遠傳的3G網路超慢 一個晚上只上傳一個檔案 其他20個現在都還沒傳完 相關文章Word,Excel錄製巨集,新增至快速存取工具列,修改檔案資訊,分頁Excel TQC考題308:銷售訂單統計表,TEXT,範圍名稱Python: numpy 4d array如何取值? pandas如何去掉空列/空欄? 如何重置DataFrame的index/欄標籤? df_drop = df_Raw.dropna (axis=0, how="all").reset_index(drop=True) ; df_drop1.columns = list(range(df_drop1.columns.size))Python: 前綴f string 格式化字串 hex_string = f'0x{value :02x}' #:02x or :08b是格式化說明符(format specifier) ; hex() or bin() #轉為16 or 2進位數字,會省略前導0Python: 若符合特定條件或觸發AssertionError, 如何提前終止函式?將return置於if, elif, except AssertionError的縮排之下告別雜亂 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:如何用 pandas.DataFrame.dropna() 刪除空列(axis=0) 空欄(axis=1) ; df_drop0 = df.dropna(axis=0, how=’all’)Python: 如何使用speech_recognition 將wav檔轉為文字?with sr.AudioFile(p) as source: audio = r.record(source) ; 如何使用mic當音源? with sr.Microphone() as source: audio_data = recognizer.listen(source)Python: os.listdir(路徑) -> list ,回傳該路徑中有那些檔案,目錄; fpath = os.path.join(folder, "*.csv" ) ; glob.glob(fpath) #通配符匹配(globbing),抓取目錄下的指定檔案名稱
0 Python如何繪製Major Minor Grid(主要/次要格線)? import matplotlib.pyplot as plt; fig, ax = plt.subplots(1,1) ; plt.minorticks_on() ; ax.grid(visible=True, which=”major”, c=”k”, linewidth=1) ; ax.grid(visible=True, which=”minor”, c=”k”, linewidth=0.5) 2022-09-07
0 Python: 如何使用graphviz套件繪製流程圖? from graphviz import Digraph ; dot = Digraph() ; dot.attr(rankdir=’TB’, size=’10,15′) #”TB”: Top to Bottom, 從上而下的佈局 2024-10-27
0 告別雜亂 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 ET 2025-11-24
近期留言