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

Python: list中的元素是list (2D list),函數自己呼叫自己,遞迴(Recursive) , dict的value是dict ,巢狀dict,可使用tuple當key,但不可使用list當key

3 年 ago

lst2D = [     [1,2,3...

  • 攝影或3C

Python: 自定義函數計算計程車車資(先typing,再用預設值), 巢狀字典以及typing.Union[ ], assert 斷言

3 年 ago

""" 起跳價:70元 (1.25 KM...

  • 攝影或3C

Python: import sys , platform , time , random,自定義函數(*參數) #可輸入多個參數 #有/無參數,有/無回傳值,四種自定義函數

3 年 ago

import platform as p...

  • 攝影或3C

Python: 2D array/list的切片,建立dict的方法:dic = dict(2D list) ; set1 = set(dic) #2D list可以轉為dict, dict的key可以轉為set

3 年 ago

import numpy as np a...

  • 攝影或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...

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