Python TQC考題804 大寫轉換 .title() .upper() .lower() by 儲蓄保險王 · 2022-05-02 #Python TQC考題804 大寫轉換 s=input() print(s.upper()) print(s.title()) #三種都做 相關文章Python TQC考題602 撲克牌總和Excel條件式格式設定,編輯自訂清單Python:繁簡互轉 pip install opencc-python-reimplementedPython: 如何用pandas.merge() 合併兩個DataFrame? 具關聯性欄位合併Python × Ollama 教學:用本地 LLM (Large Language Model 大語言模型)將 JSON 逐筆自動轉成中文自然語言Python的財務函數 numpy_financial.rate() ,19歲奧運跆拳銅牌美少女羅嘉翎的國光獎金,應該一次領500萬?還是終身月領2.4萬?Excel財務函數PMT, RATE, NPER, PV, FVPython 如何做excel的樞紐分析? pandas.pivot_table() 或 pandas.DataFrame .groupby() ; 如何指定欄位順序? DataFrame.reindex() ; .sortlevel() ; DataFrame[[col1, col2, col3 ]] ; df.columns.map() ; 如何顯示所有欄? pandas.set_option ("display.max_columns", None)Python: matplotlib如何設定座標軸刻度? plt.xticks(seq, labels) ;如何生成fig, ax物件? fig = plt.figure(figsize= (10.24, 7.68)) ; ax = fig.add_subplot() ; fig, ax = plt.subplots(figsize=(10.24, 7.68)) ; 如何使用中文? plt.rcParams["font.family"] = ["Microsoft JhengHei"]Python:如何串接Gemini API?如何傳遞圖片給API?如何將回應的base64 str轉回圖片?如何看消耗的tokens?
0 python:如何用 pandas.DataFrame.dropna() 刪除空列(axis=0) 空欄(axis=1) ; df_drop0 = df.dropna(axis=0, how=’all’) 2022-12-09
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
0 Python 如何用pandas.Series.nsmallest() 找到n個與target差距最小的index?再從中找到距離idxmax最近的index?避免誤抓sidelobes的index? targetIdx = (serMean-target_value).abs().nsmallest(n).index.tolist() ;Series切片: .loc[標籤名1:標籤名2] (會含標籤名2) ; .iloc[位置1:位置2] (不含位置2) 2023-02-21
近期留言