fpath=r’c:\Python\Radar_20221005\Matlab_For_RFSoC_RTS\Gain.txt’
L=[];Gain_I=[] ; Gain_Q=[]
with open(fpath,’r’) as f:
for line in f:
lst = line.split() #[‘32767′,’0’]
L.append( lst )
Gain_I.append( lst[0] )
Gain_Q.append( lst[1] )
print(“Gain_I:”,Gain_I)
print(“Gain_Q:”,Gain_Q)
![Python如何開文字檔案?取出某一直行?with open(fpath,'r') as f: for line in f: lst = line.split() - 儲蓄保險王](https://savingking.com.tw/wp-content/uploads/2022/11/20221103095156_89.png)
近期留言