2017 KK Box年度風雲歌手演唱會_五月天(Sony Nex) by 儲蓄保險王 · 2017-01-23 https://youtu.be/x5oM6znutGo https://youtu.be/4-BoLvUXeps https://youtu.be/062JTUw-sRk 相關文章Python TQC考題904 資料計算, with open() as file: for line in file: L.append(line.split())20140817_05_HX400V_宜蘭國際童玩節_土耳其argparse 超簡單教學:讓 Python 小工具聽懂你的指令; parser = argparse .ArgumentParser() ; parser.add_argument("--name") ; args = parser.parse_args()Word圖文編輯,TQC考題310:福袋,滑鼠右鍵>格式化圖案,格式>圖案樣式 展開>最右邊圖示 版面配置與內容>左,右,上,下 邊界Python: 如何使用functools.reduce逐步縮減可迭代對象,合併為單個結果? import functools; product = functools.reduce( lambda x, y: x * y, numbers) ; reduce(function, sequence [, initial]) -> value ; map(function, iterable) ; filter(function, iterable) ; map ; filterPython: Counter 教學; from collections import Counter告別雜亂 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: 前綴f string 格式化字串 hex_string = f'0x{value :02x}' #:02x or :08b是格式化說明符(format specifier) ; hex() or bin() #轉為16 or 2進位數字,會省略前導0Python四種容器(list, tuple, set, dict)的CRUD(Create創建, Read讀取, Update修改, Delete刪除)
0 Python: pandas.DataFrame()處理雙維度資料,dict跟2D list轉為DataFrame有何差別?如何用index及columns屬性客製化index跟欄位名稱?df.index = [“一”,”二”,”三”,”四”] ; df.columns = 使用.head(n) ; .tail(m) ;取首n列,尾m列; .at[index,欄位名稱] 取單一資料 ; .iat[index,欄位順序] 取單一資料 ; .loc[index,欄位名稱] 取資料 ; .iloc[index,欄位順序];df.iloc[ [0,1],[0,2]])取資料 ; df.iloc[ 0:3,0:2]切片 2022-11-11
0 Python: pandas.DataFrame.drop()的參數axis=0 / 1 vs index / columns ; 如何drop DataFrame的rows / columns ? 2023-10-15
近期留言