→ Enzo1: 未看先猜1樓是帥哥 2樓 KI780804 3樓ZSH07/15 01:37
→ KI780804:樓上Enzo1樓下zsh07/15 01:37
→ zsh:劣退 BY ZSH07/15 01:37
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 114.34.188.129
推 lc85301:float(a[0])呢? 08/11 20:54
推 z101924512:能po一下錯誤訊息嗎? 08/11 20:59
Traceback (most recent call last):
File "./fea.py", line 33, in <module>
z[i] =string.atof(a[0])
File "/usr/lib64/python2.7/string.py", line 388, in atof
return _float(s)
ValueError: could not convert string to float:
麻煩大家了...
※ 編輯: LeeGarDer 來自: 114.34.188.129 (08/11 21:28)
推 jlhg:讀到空字串 08/11 21:48
已解決......不是讀檔問題
是我後面不小心有個元素除到0了.....
※ 編輯: LeeGarDer 來自: 114.34.188.129 (08/11 22:55)