Python TQC考題804 大寫轉換 .title() .upper() .lower() by 儲蓄保險王 · 2022-05-02 #Python TQC考題804 大寫轉換 s=input() print(s.upper()) print(s.title()) #三種都做 相關文章Python Pandas GroupBy 的 size 陷阱:為什麼你的計數結果總是不對?如何計算重複次數? duplicates = df.duplicated( subset = ['name'] )Python: 如何批量將檔案更名?os.rename(old_name, new_name) ; glob.glob() #讀取資料夾中的所有檔案 ; os.path.split(fpath) = os.path.dirname(fpath) , os.path.basename(fpath) ; os.path.splitext(basename) #分離主/副檔名Python: Google Cloud 認證終極指南:從 API 金鑰到服務帳戶,如何不下載憑證檔通過認證?避開所有常見錯誤!Python: 如何串接Meta API ?如何將dict存成JSON檔? json.dump(dic_msg ,f , ensure_ascii=False ,indent=4)Python TQC考題508: 二進位運算; 使用f string格式化字串 {:08b}Python-docx 教學:如何繪製自定義表格格線並用 DataFrame 填充 Word 表格Python: namedtuple(可用屬性名或index拜訪元素)與tuple(只能用index拜訪元素)有何差異?namedtuple vs dictPython: 如何用 difflib.get_close_matches() 比對字串相似度並儲存結果Python:如何使用 PyMuPDF (import fitz ) 提取 PDF 文本區塊並存儲為 DataFrame ; text: List[ Tuple[float|str|int] ] = page.get_text("blocks")
0 Python: 如何用seaborn (sns) 套件繪製具有多個子圖的散佈圖且限定欄數?g = sns.relplot (data=tips, x=”total_bill”, y=”tip”, col=”day”, hue=”sex”,col_wrap=2, kind=”line”) 2023-03-05
0 Python: matplotlib繪圖如何共用x axis, y axis, x label, ylabel? fig, axs = plt.subplots(nrows=2, ncols=3, sharex=True, sharey=True) ; plt.suplabel() 2023-02-28
近期留言