• 保障型
  • 各家保險公司1
    • 中國人壽
    • 新光
    • 富邦
    • 遠雄
    • 全球
    • 台灣人壽
    • 元大人壽
  • 各家保險公司2
    • 台銀人壽
    • 宏泰
    • 南山&朝陽
    • 國泰
    • 香港保單
    • 第一金人壽
    • 安聯
  • 投資
  • 理財與保險觀念
  • 信用卡
  • 保險局仇視短年期儲蓄險
  • 利率&利差
  • 專家?專門害人家?
  • 舊保單轉換
  • 攝影或3C
  • 新聞
  • 旅遊訂房,購物
  • 廠商廣告
  • 清單
  • 男女交友
  • 笑話
  • 電影
  • 未分類
All Rights ReservedView Non-AMP Version
儲蓄保險王
  • 攝影或3C

Python: Visual Studio Code (VS code) or Spyder import模組執行後,出現no module找不到指定模組錯誤, settings.json , import sys ; lst = sys.path ; sys.path.append() ;Spyder: Tools => PYTHONPATH manager

3 年 ago

參考此篇文章 於VS code目錄底下 ...

  • 攝影或3C

Python如何寫入docx文件? from docx import Document ; doc = Document() ; table = doc.add_table(rows=5, cols=3) ; table.cell(r,c).text = str(tabs[r][c]) ; doc.add_heading ; p = doc.add_paragraph ; p.add_run ; doc.add_picture ; 使用wordPad開啟會少最後一個row,可以用免費的LibreOffice

3 年 ago

from docx import Doc...

  • 攝影或3C

Python 如何計算IRR? 免費下載IRR計算機 import numpy_financial as npf ; myirr = npf.irr(lst)

3 年 ago

參考: numpy_finanical ...

  • 攝影或3C

Python繪製hlines , vlines , axhline , axvline , axline ; import matplotlib.pyplot as plt ; plt.hlines(y, xmin, xmax,color=”b”) ; plt.vlines(x, ymin, ymax,color=”r”)

3 年 ago

import matplotlib.py...

  • 攝影或3C

Python: Visual Studio Code (VS code) 程式碼input(),終端機卻無法輸入資料且顯示亂碼,該如何設定?齒輪 > 設定,搜尋: run in terminal, 打勾: Wether to run code in integrated Terminal.

3 年 ago

Visual Studio Code 齒...

  • 攝影或3C

Python: Visual Studio Code如何強制終止程式?終端機位置,滑鼠右鍵 > Stop Code Run (快捷鍵: Ctrl + Alt + M)

3 年 ago

在終端機位置 滑鼠右鍵 > Sto...

  • 攝影或3C

Python 具有強制特性的函式庫規格化; from multipledispatch import dispatch

3 年 ago

      from...

  • 攝影或3C

Python, typing: 函數庫規格標註; def addTest(x:float, y:float) -> float: List[資料型態] Set[資料型態] Tuple[資料型態] Dict[str,value的資料型態] Union[資料型態1, 資料型態2] ,函式若有多個輸出值,其實是輸出一個tuple

3 年 ago

def addTest(x:float,...

  • 攝影或3C

Python 如何讀取csv檔? import csv ; raw=csv.reader(f) ; Visual Studio Code(VScode)為什麼會出現錯誤 module ‘csv’ has no attribute ‘reader’ ?

3 年 ago

path=r"C:\Python\RF ...

  • 攝影或3C

Python如何繪製Major Minor Grid(主要/次要格線)? import matplotlib.pyplot as plt; fig, ax = plt.subplots(1,1) ; plt.minorticks_on() ; ax.grid(visible=True, which=”major”, c=”k”, linewidth=1) ; ax.grid(visible=True, which=”minor”, c=”k”, linewidth=0.5)

3 年 ago

參考資料 import numpy as...

Show more Posts
Show previous Posts
All Rights ReservedView Non-AMP Version