Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ファイル内の値が 1 つだけの場合、numpy.loadtxt() は配列ではなく値を返すだけですが、回避するにはどうすればよいですか?
前もって感謝します!
たとえば、ファイルには 12345 しかありません
12345.6
numpy.loadtxt() が返す
それ以外の
array([12345.6])