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

  • 攝影或3C

Python繪圖 import matplotlib.pyplot as plt ; plt.annotate(annot_min,(yMinIdx,minY)) ; ax.annotate(text,xy,…) #註釋 ; 通用屬性 ; linestyle ;圖例 legend ; set_title()、set_xlabel()、set_ylabel() ; 網格 ax.grid(visible=None, axis=’both’, …) ; ax.set_xticks() ; ax.set_yticks()

3 年 ago

import matplotlib.py...

  • 攝影或3C

Python data = numpy.zeros( (4,6,2), dtype=float) ; print(data.shape); min0 = numpy.min(a,axis=0) ; min1 = numpy.min(a,axis=1) #2次沿軸1 ; numpy.average() ;array的軸向

3 年 ago

import numpy as np d...

  • 攝影或3C

Python numpy.argmin(array) 傳回沿軸最小值的index,參數不能用list,可用numpy.array(),把list轉為array

3 年 ago

Freqs=[10000,11000,1...

  • 攝影或3C

Python 讀取檔案,list.index(元素)回傳該元素位於那一個index, with open(fpath, ‘r’) as f: while True: aline=f.readline() ; if aline == “”: break ; raw = aline.strip().split(“,”)

3 年 ago

fpath=r"C:\Python\WR...

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