好書推薦 by 儲蓄保險王 · 2014-11-09 肯恩費雪: 肯恩費雪教你破除50個投資迷思 十條路賺很大: 富比世超級富豪肯恩.費雪教你如何變有錢! 肯恩費雪 教你看懂投資市場: 這次沒有不一樣, 不犯相同錯誤才能獲利! 拆開獲利的糖衣: 17個摧毀退休計劃的投資迷思 投資最重要的3個問題: 掌握別人不知道的事才能超越大盤 綠角: 綠角教你前進美國券商: Step by Step 圖解實戰手冊 綠角的基金8堂課:獲利贏過經理人 股海勝經:No.1財經部落格主的指數化投資法 John Bogle (指數型基金創辦人): 柏格談共同基金 柏格常贏之道 買對基金賺大錢 共同基金必勝法則<十年典藏版>(上) 共同基金必勝法則<十年典藏版>(下) 夠了:基金之神John Bogle寫給中產階級的快樂致富學 夠了:回到理財初衷,跳出金錢困局 一本書學識投資 威廉.伯恩斯坦 (William Bernstein): 智慧型資產配置 投資金律:建立獲利投資組合的四大關鍵和十四個關卡 投資人宣言:教你如何建構一生受用的投資計畫 Sway: 黑心建商的告白 黑心投資客炒房告白 黑心房仲的告白 Sway黑心房產套組(加贈2013房市趨勢快報) 突圍黑心房市!Sway 誠實帶看日記: 全台物件實地分析+管委會的血淚告白 其他: 張金鶚的房地產七堂課 房仲業不告訴你的50件事 要買保險的168個理由 理財專員不告訴你的40件事 投資顧問怕你發現的真相 (The Big Investment Lie) 投資專家怎麼會輸給猴子? 【當和尚遇到鑽石4】愛的業力法則:西藏的古老智慧,讓愛情心想事成 相關文章Python Regex 實戰:精準抓取 XML 屬性值 (findall vs finditer 與 Group 的奧義)Python-docx 進階手術室:從底層 XML 到超連結混合技; from docx.opc.constants import RELATIONSHIP_TYPE as RT ; part = doc.part ; r_id = part.relate_to(url, RT.HYPERLINK, is_external=True)告別雜亂 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 DOCX 手術刀:精準切片與瘦身 (OOXML 實戰); from lxml import etree; doc_xml = zfin.read('word/document.xml') ; doc_tree = etree.fromstring(doc_xml) ; used_rids = set( doc_tree.xpath( "//@r:embed | //@r:link | //@r:id", namespaces=ns_map)) #獲取 word/document.xml 有使用的used_rids => 讀取 document.xml.rels 建立白名單 keep_files以及黑名單 rels_to_remove ,要移除的Relationship節點 => 從 XML 樹中移除未使用的 Relationship 節點 => 重寫 Zip (過濾孤兒檔案, 更新document.xml.rels,其他原樣複製)python-docx 進階手術室:從高階 API 到底層 XML (w:p, w:r, w:t) 完全解析; from docx.oxml import OxmlElement ; from docx.oxml.ns import qnPython hashlib 快速入門:為資料建立唯一指紋import hashlib; data = "文字".encode('utf-8'); hash_obj = hashlib.sha256(data); result = hash_obj.hexdigest() #digest:「取得雜湊摘要」或「取得摘要值」Python XML 的生死輪迴:深入理解 lxml.etree.fromstring(xml_bytes) #Bytes → Element Object 與 lxml.etree.tostring(Element, encoding= "utf-8") #Element Object → Bytes ; 處理 XML 時,盡量全程保持 Bytes (二進位) 狀態。Python tempfile 模組完全指南:安全管理臨時檔案的最佳實踐; import tempfile ; tempfile.gettempdir() ; tempfile.template ; os.access(temp_dir, os.W_OK) ; with tempfile.NamedTemporaryFile() as tmp: tmp_path = tmp.name #有檔名的臨時檔案 ; with tempfile.TemporaryDirectory() as tmpdir #臨時資料夾 ; with tempfile.TemporaryFile() as tmp #無檔名的臨時檔案Python Zipfile 實戰:Write vs Writestr —— 硬碟搬運工與記憶體魔術師; XML 處理的世界裡,writestr 才是真正的主角; zf.writestr(zinfo_or_arcname, data) #zinfo_or_arcname: ZipInfo | str ; data: bytes | str
近期留言