20140817_15_HX400V_宜蘭國際童玩節_俄羅斯 by 儲蓄保險王 · 2014-09-01 20140817_15_HX400V_宜蘭國際童玩節_俄羅斯 http://youtu.be/75upmO6xAyM 相關文章Python: matplotlib如何繪製出副刻度?minor_locator = ticker.MultipleLocator(0.5) ; ax.xaxis.set_minor_locator(minor_locator)Python:字典dict()如何一次讀出所有keys, values, items? dic.keys() ; set(dic) 無序; dic.values() ; dic.items()Python: Visual Studio Code (VS code) 程式碼input(),終端機卻無法輸入資料且顯示亂碼,該如何設定?齒輪 > 設定,搜尋: run in terminal, 打勾: Wether to run code in integrated Terminal.Word短篇文件編輯,TQC考題106:暑期國外旅遊機票,框線及網底(段落網底非文字網底),版面配置>行號>連續Python: 檔名:14.5GHZ.csv 如何依據.csv的.做split(),但.5GHZ的.不split()? parts = filename.rsplit(".", 1) ; 使用正則表示法parts = re.split(r"\.(?!\d)", filename) ; os.path.splitext(filename)Python-docx 教學:如何繪製自定義表格格線並用 DataFrame 填充 Word 表格Python: 如何使用pandas.to_numeric ( df['numbers'], errors='coerce') 將非數值型資料轉為NaN? df['numbers'].describe() 簡述統計資料Python: 如何在matplotlib畫的圖添加文本或註釋? ax.text() 跟 ax.annotate() 有何差別? ax.annotate(f'max value={y_max:.2f}', xy=(x_max, y_max), xytext=(x_max-0.5, y_max-0.5), fontsize=12, arrowprops=dict(arrowstyle='->', connectionstyle='arc3', color='r'))Python 讀取 DOCX 圖片關聯:qn+find/findall 與 XPath 的實戰對照 from lxml import etree ; from docx.oxml.ns import qn; lxml.etree._Element.findall( f".//{ qn('a:blip') }" ) ; .get( qn("r:embed") ) #獲取 屬性名 'r:embed' 的 屬性值(如: 'rId4') ; lxml.etree._Element.xpath( "//a:blip/@r:embed", namespaces = NS) #/@r:embed = 獲取 屬性名 'r:embed' 的 屬性值(如: 'rId4'),使用.findall() 要先.findall()獲取List[_Element],再迴圈_Element.get()獲取屬性值, .xpath() 第一個參數path 使用"//a:blip/@r:embed" ,可直接獲取屬性值(List[str]如: ['rId4', 'rId5']) ; 如何對docx真實移除圖片瘦身?
0 Python逐位元運算(bitwise operation),或or | , 且and & , 互斥或xor ^ , 反向~ ;位元左移 x << y => 效果同x*(2**y) ; 位元右移 x>>1 => 效果同x//2;x>>16效果同 x//(2**16) 2022-11-12
0 Python: 如何對 pandas.DataFrame 兩欄位運算後,增加到最後一欄? df[‘sum_AB’] = df.apply(sum_ab, axis=1) ; lambda函式 2023-03-14
近期留言