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

  • 攝影或3C

Python提取2D array的一部份資料; import numpy; a[1: , 2:] ; a[1:-1 , 2:-1]

3 年 ago

import numpy a = num...

  • 攝影或3C

Python函數參數使用*list或*tuple(長度同參數個數), **dict(取value), *dict(取key)解包的差別? *第一個(不定長度)參數:打包為tuple,**最後一個(不定長度)選擇性參數:打包為dict,解包時dict的key要與參數的名稱一樣,而且不可多,不可少,解包與打包運算子

3 年 ago

def addTest(x, y): #...

  • 攝影或3C

Python: Visual Studio Code (VS code) & Spyder 如何切換不同版本的Python直譯器( Interpreter ), VS code: 齒輪>命令選擇區(Ctrl + Shift +P) > Python: Select Interpreter #Spyder console: !where python #知道自己安裝的python路徑

3 年 ago

Visual Studio Code (...

  • 攝影或3C

Python list[] dictionary{key: value},如何從兩個list,建立一個dictionary?

3 年 ago

prod = ["17 LCD", "3...

  • 攝影或3C

Python 不定數迴圈 while True: 不斷讓使用者輸入身高,體重,回饋BMI狀況,直到輸入-9999,跳離迴圈

3 年 ago

h = eval(input("請輸入你...

  • 攝影或3C

Python: Regular Expression 正規表示法 正則表達式 import re ; pattn = “[\d]{4}\/[01][\d]\/[0123][\d] [\d]{6}” ; match = re .search (pattn,text) .group()

3 年 ago

time= ['Amplitude', ...

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