Python TQC考題804 大寫轉換 .title() .upper() .lower() by 儲蓄保險王 · 2022-05-02 #Python TQC考題804 大寫轉換 s=input() print(s.upper()) print(s.title()) #三種都做 相關文章Python 列表推導式(List Comprehension)中 if 的位置差異; if 放在後面 (過濾條件) ; if 放在前面 (三元運算符)Python TQC考題: 輸入一個正整數n,並讀取read.txt內容,將首n列的每個英文字首字大寫輸出write.txt ; pandas.Series.str.title() #輸出csv或xlsx時,如何不輸出index 跟 header ? .to_csv( "write.txt", index=False, header=False)Python 機器學習:手把手教你用 sklearn.preprocessing .StandardScaler 做數據標準化(Standardization)#只接受2D數據 ; from sklearn.preprocessing import StandardScaler ; 儲存/載入 scaler or model: joblib.dump() / joblib.load()Word表格設計,TQC考題204:成績單,段落前分頁word:合併列印Excel樞紐分析圖,快速鍵(拆分),列高不同之下拉設定Gmail 合併郵件Python 如何讀取csv檔? import csv ; raw=csv.reader(f) ; Visual Studio Code(VScode)為什麼會出現錯誤 module 'csv' has no attribute 'reader' ?Python 遞迴教學:從巢狀結構抓取所有標題
0 Python繪圖 import matplotlib.pyplot as plt ; plt.annotate(annot_min,(yMinIdx,minY)) ; ax.annotate(text,xy,…) #註釋 ; 通用屬性 ; linestyle ;圖例 legend ; set_title()、set_xlabel()、set_ylabel() ; 網格 ax.grid(visible=None, axis=’both’, …) ; ax.set_xticks() ; ax.set_yticks() 2022-08-30
0 Python如何讀取json檔?dic = json.loads( json_str ) ; json的保留字:null, true, false(區分大小寫,全小寫), null(非”null”,非Null)自動轉譯為None, true(非”true”,非True)自動轉譯為True(bool), false(非”false”,非False)自動轉譯為False(bool);colab如何掛載雲端硬碟? from google.colab import drive ; json檔的decode與encode? json.load() ; json.loads() ; json.dump() ; json.dumps() #s代表string的意思,有s的指令,參數需使用str type 2023-07-11
近期留言