20140817_19_HX400V_宜蘭國際童玩節_俄羅斯 by 儲蓄保險王 · 2014-09-02 20140817_19_HX400V_宜蘭國際童玩節_俄羅斯 http://youtu.be/aBtjvr6pTyo 相關文章Python: 如何使用graphviz套件繪製流程圖? 如何讓左右兩個子圖同高度? graph_attr = {'newrank': 'true'}Python: list/ tuple的串接 numpy.ndarray/ pandas.Series的(橫向)串接; numpy.concatenate() ; pandas.concat() ; 擴充ndarray的維度 np.expand_dims()Python: 如何用 pandas.DataFrame.apply 讓DataFrame增加新的一欄 ; df[“mean”] = df.apply( np.mean, axis=1) ; DataFrame.apply(func, axis=0, raw=False, result_type=None, args=(), **kwargs)Python: 如何讀取json檔? json.load(TextIOWrapper) #文本流輸入輸出封裝器; json.loads(str) 有何差別? 如何跳到文件的一開頭? f.seek(0,0) ; dict的key若重複,後面覆蓋前面Python: 如何使用正則表示法(Regular Expression)非貪婪模式(.*?) or (.+?),取出以下字串所有被雙引號包圍的部分?response: addr="0000:01:00.0" vid="0x144d" did="0xa826" svid="0x144d" sid="0xab4c" speed="16.0GT/s" width="x4" max_width="x4" expected_width="x4" expected_speed="16.0GT/s" devpath="/phys/SB_CAB0/DOWNLINK/U2_15:device:nvme:nvme"如何用tkinter製作Python的GUI(圖形使用者介面)? 如何做出計算機? eval() 可將字串還原為python指令Python IDE(Integrated Development Environment 整合開發環境) colab如何掛載雲端硬碟?from google.colab import drive; drive.mount( '/content/drive' ) ; 檔案複製shutil.copy() #shell utility; 檔案移動shutil.move( source_file, destination_path); 刪除整個資料夾shutil.rmtree( folder_to_delete ); 刪除某一個檔案os.remove() #shutil.remove()會觸發AttributeError; 如何將檔案路徑拆分為父資料夾與檔案名稱(含副檔名)? os.path.dirname( file_path) ; os.path.basename( file_path) 如何將檔案名稱拆分為主檔名與副檔名? os.path.splitext( file_name) #split(分裂) ext的意思Python: 網路爬蟲 selenium 開啟chrome瀏覽器自動連線 ; chrome = webdriver.Chrome( options=options ) ; Python的命名慣例: 全大寫表示常數,首字大寫表示ClassPython爬蟲:BeautifulSoup的.find_all() 與select() ; from bs4 import BeautifulSoup ; .string .text .get_text() 獲取文字內容
0 Python:使用struct() 對二進位數據打包、解包 data = struct.pack (format_str, 1, 2, 3.14) ; result = struct.unpack (format_str, data) ; numpy.fromfile() ; 2023-03-06
0 Python 與時間相關的模組 import time ; .time() ; .localtime() ; .tm_year ; .tm_mon ; .tm_mday ; .ctime() #current time ; .sleep() ;time.asctime() #as string ; time.strftime() #string format time 2022-09-23
近期留言