20140817_11_HX400V_宜蘭國際童玩節_泰國 by 儲蓄保險王 · 2014-08-30 20140817_11_HX400V_宜蘭國際童玩節_泰國 http://youtu.be/aAXjTCyCncs 相關文章Python: list.index() 只能找到第一個元素的index,若元素有重複,如何找出所有index? indexes = [index for index, value in enumerate(my_list) if value == target]Python: 如何使用jieba做中文斷詞? jieba.cut(sentence, cut_all=False, HMM=True, use_paddle=False) #.cut() return generator 如果需要獲取具體結果,需要用 join() 或 list() 處理 #.lcut() 直接生成listPython 自省精簡示範:Frame 與 Code Object 入門; import inspect ; inspect.currentframe().f_code.co_name #動態取得function_namePython物件導向: 類別class裡什麼時候該用 self?什麼放成類別等級變數?區域變數, 實例屬性, 類別屬性Python爬蟲: selenium如何find_elements() ? 如何搭配portable Chrome? from selenium.webdriver.common.by import By ; from selenium.webdriver.chrome.options import Options ; option = Options() ; option.binary_location = chrome_portable_pathPython TQC考題508: 二進位運算; 使用f string格式化字串 {:08b}Python 章節編號連續化教學:用程式為 Word 標題自動產生連續編號 full_num_pathPython: 循環播放 英文單詞及其中文翻譯 ; from gtts import gTTSPython: 如何幫list添加元素?append() ; extend() 的差別為何? extend()配合zip()超好用
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: any(list) 判斷list中是否有True ; all(list) 判斷list中是否全為True ; any(pandas.Series)相當於any(pandas.Series.values) ; i in pandas.Series 卻相當於於i in pandas.Series.index 2023-06-03
近期留言