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

Python: list的加法跟乘法(減法跟除法不行), list(n)*m #有m個元素n, ndarray.tolist()可以將array轉為list

3 年 ago

lst1 = [1]*2 lst2 = ...

  • 攝影或3C

Python import numpy ; numpy.array (list, dtype = numpy.int16); typing : np.ndarray

3 年 ago

  int8 8 位元有號整數...

  • 攝影或3C

Python: enumerate 遍歷 ; lst1 = list( enumerate (seasons, start=1) ) ; for idx, sea in  enumerate (seasons, start=1): print(idx,sea)

3 年 ago

seasons = ["Spring",...

  • 攝影或3C

Python物件導向(Object-oriented programming,簡稱OOP),類別(Class), 物件(Object), 屬性(Attribute)=變數, 方法(Method)=函式, 建構式(Constructor) def __init__(self,x,y): 計算計程車車資, assert 斷言, 全域變數與區域變數

3 年 ago

class Cars:  # 汽車類別 ...

  • 攝影或3C

Python: Spyder 5.1.5使用input指令就當掉,該如何解決?如何升級Spyder 5.3.3? conda uninstall spyder ; conda install spyder==5.3.3

3 年 ago

Spyder 5.1.5一使用input...

  • 攝影或3C

Python如何讀取json檔?codebeautify.org 線上瀏覽json檔, with open(targetJson,”r”) as f:     json_str = f.read()  ;   jsn = json.loads(json_str)

3 年 ago

https://codebeautify...

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

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