Soru
15 Numpy loadtet function to read the file generated array, about the generated array data type, the correct statement is ( ) A. The default data type is floating point B. Automatically determines that ithe original data is an integer, the data type of the generated array is also an integer The clotauit data type is intoger D The de'ault data type is string
Çözüm
4.3253 Voting
Reşat
Usta · 5 yıl öğretmeniUzman doğrulaması
Cevap
The correct statement is:<br /><br />A. The default data type is floating point<br /><br />Explanation: When using the NumPy `loadtxt` function to read a file, the default data type is floating point. If the original data is an integer, it will be read as a floating point array. The data type is not automatically determined based on the original data being an integer, and the default data type is not a string.
Derecelendirmek için tıklayın: