Monthly Archive: 8 月 2022
Python numpy.argmin(array) 傳回沿軸最小值的index,參數不能用list,可用numpy.array(),把list轉為array
Freqs=[10000,11000,12000,13000,140...
Python三維陣列 import numpy as np ; A = np.ones((2,3,4),dtype=int) ; B = np.zeros((2,3,4),dtype=int)
import numpy as np A=np.ones((2,3,...
Python讀取或儲存mat檔(dict), import scipy.io ; dic = scipy.io.loadmat(pathf) ; scipy.io.savemat(SavePath, rawdict)
fname = r”\ParametricStudy_R...
Python import numpy as np ; np.arange(-50, 60, 10); dict(key)提取dict內的元素; importlib.reload(); np.zeros(); np.array()
import numpy as np Field = {‘...
Python import sys; sys.path; set PYTHONPATH= ; 環境變數; 字串前方加一個 r 是一個特殊的字串前輟旗標; Python的字串中輸入\\,輸出\ , 輸入%%,輸出%;跳脫字元(Escape Characters)
Spyder終端機: 路徑: C:\ProgramData\Anac...
Python自動初始化物件變數 class circle; def __init__(self); self.radius=1
class circle: def __init__(self): ...
Python繪圖 import matplotlib.pyplot(pylab) as plt; from pylab import *
Python繪圖import matplotlib.pyplot a...
近期留言