20140817_13_HX400V_宜蘭國際童玩節_俄羅斯 by 儲蓄保險王 · 2014-09-01 20140817_13_HX400V_宜蘭國際童玩節_俄羅斯 http://youtu.be/bpj9J3Ck8sg 相關文章Python: 如何即時將語音轉為文字? import speech_recognition as sr ; r = sr.Recognizer() ; str1 = r.recognize_google( audio, language = "zh-TW")Python: 如何使用jieba做中文斷詞? jieba.cut(sentence, cut_all=False, HMM=True, use_paddle=False) #.cut() return generator 如果需要獲取具體結果,需要用 join() 或 list() 處理 #.lcut() 直接生成listPython: 如何使用 os.environ["PATH"] 設定環境變數?與 sys.path.append() 差別為何?Python如何輸出多分頁的xlsx? with pandas .ExcelWriter ("output.xlsx") as writer:Python中的時間處理簡介; timestamp: float = time.time() #獲取時間戳; localtime = time.localtime( timestamp ) #獲取localtime; strftime = time.strftime('%Y-%m-%d %H:%M:%S', localtime) #獲取strftime #str format timePython:如何將folder_path & file_name合併為file_path? fpath = os.path.join (folder , fname) #不需要[ ]包覆folder,fname; fpath1 = "\\".join( [folder , fname] ) #需要[ ] 包覆folder,fname ; 反過來講,file_path如何拆分為folder_path & file_name? os.path.dirname() ; os.path.basename() ; file_name如何拆分為主檔名與副檔名os.path.splitext() #split(分裂) extPython: 正則表示法(regular expression)中的量詞: +*? ; reading="100.000" units="degrees C" ; 如何以空格分割字串,卻不分割"degrees C"中的空格? re.findall(r'(\w+)="([^"]*)"', input_string)Python爬蟲:BeautifulSoup的 .find_all() 與 .find() 與 .select('標籤名[屬性名1="屬性值1"][屬性名2="屬性值2"]') ; from bs4 import BeautifulSoup ; Live Server(可以預覽HTML的VS Code套件)Python: 網路爬蟲 selenium 開啟chrome瀏覽器自動連線 ; chrome = webdriver.Chrome( options=options ) ; Python的命名慣例: 全大寫表示常數,首字大寫表示Class
近期留言