Python TQC考題804 大寫轉換 .title() .upper() .lower() by 儲蓄保險王 · 2022-05-02 #Python TQC考題804 大寫轉換 s=input() print(s.upper()) print(s.title()) #三種都做 相關文章Python: 教你輕鬆掌握資料獨熱編碼(one hot encoding); pandas.get_dummies( ) 與 LabelEncoder 的詳細教學; from sklearn.preprocessing import LabelEncoderPython: openai-whisper 語音轉文字(Speech To Text, STT)完整教學; pip install openai-whisper ; 如何購買openAI API key?如何生成字幕檔?Python爬蟲: 如何確認Chrome瀏覽器版本? chrome://settings/help ; chrome://version/ 如何尋找對應的Chrome Driver? https://googlechromelabs.github.io/chrome-for-testing/known-good-versions-with-downloads.jsonPython: 如何使用jieba做中文斷詞? jieba.cut(sentence, cut_all=False, HMM=True, use_paddle=False) #.cut() return generator 如果需要獲取具體結果,需要用 join() 或 list() 處理 #.lcut() 直接生成listPython機器學習: 從特徵工程到數據擬合 PolynomialFeatures 與 numpy.polyfit 的全面比較與應用; from sklearn.preprocessing import PolynomialFeatures ; poly = PolynomialFeatures( degree=2, include_bias = True) ; X_poly = poly.fit_transform(X)Python使用OpenAI API文字轉語音(Text To Speech, TTS) : from openai import OpenAI ; client = OpenAI (api_key = api_key) ; response = client .audio .speech .create( model= "tts-1-hd", input= text_content, response_format= "mp3")Python tensorflow深度學習中的過擬合防治:早停策略,動態調整學習率,Dropout,正則化調整lossPython Pandas:to_json( orient = "records" ) 與 to_dict( orient = "records" ) 圖文教學與常見陷阱Python: 如何使用graphviz套件繪製U型流程圖? with g.subgraph() as s: s.attr(rank='same') 如何使用U形排列,營造出node下方有label的效果?取代xlabel功能
0 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的意思 2023-07-16
0 Python GUI: 如何使用tkinter建立垃圾桶icon (Unicode: “\U0001F5D1”)的Button?一按就刪除掉Label + Entry + Button ; trash_icon = tk.PhotoImage( file = trash_icon_path) 2023-06-08
0 Python matplotlib繪製3D圖; surface = ax.plot_surface (axXmesh, axYmesh, dataZary , rstride=1, cstride=1, cmap=”coolwarm_r”) ; spyder無法用滑鼠改變3D圖的視角該如何處理? %matplotlib qt 2023-01-03
近期留言