久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

numpy 數組 dtype 在 Windows 10 64 位機器中默認為 in

numpy array dtype is coming as int32 by default in a windows 10 64 bit machine(numpy 數組 dtype 在 Windows 10 64 位機器中默認為 int32)
本文介紹了numpy 數組 dtype 在 Windows 10 64 位機器中默認為 int32的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

我在筆記本電腦上安裝了 Anaconda 3 64 位,并在 Spyder 中編寫了以下代碼:

I have installed Anaconda 3 64 bit on my laptop and written the following code in Spyder:

import numpy.distutils.system_info as sysinfo
import numpy as np
import platform

sysinfo.platform_bits 
platform.architecture()

my_array = np.array([0,1,2,3])
my_array.dtype

這些命令的輸出顯示如下:

Output of these commands show the following:

sysinfo.platform_bits 
Out[31]: 64

platform.architecture()
Out[32]: ('64bit', 'WindowsPE')

my_array = np.array([0,1,2,3])
my_array.dtype
Out[33]: dtype('int32')

我的問題是,即使我的系統是 64 位的,為什么默認數組類型是 int32 而不是 int64?

My question is that even though my system is 64bit, why by default the array type is int32 instead of int64?

感謝任何幫助.

推薦答案

默認整數類型np.int_是C long:

Default integer type np.int_ is C long:

http://docs.scipy.org/doc/numpy-1.10.1/user/basics.types.html

但是 C long 在 win64 中是 int32.

But C long is int32 in win64.

https://msdn.microsoft.com/en-us/library/9c3yd98k.aspx

這有點奇怪.

這篇關于numpy 數組 dtype 在 Windows 10 64 位機器中默認為 int32的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

Troubles while parsing with python very large xml file(使用 python 解析非常大的 xml 文件時出現問題)
Find all nodes by attribute in XML using Python 2(使用 Python 2 在 XML 中按屬性查找所有節點)
Python - How to parse xml response and store a elements value in a variable?(Python - 如何解析 xml 響應并將元素值存儲在變量中?)
How to get XML tag value in Python(如何在 Python 中獲取 XML 標記值)
How to correctly parse utf-8 xml with ElementTree?(如何使用 ElementTree 正確解析 utf-8 xml?)
Parse XML from URL into python object(將 XML 從 URL 解析為 python 對象)
主站蜘蛛池模板: 欧美不卡网站 | 欧美一级欧美一级在线播放 | 日本三级电影在线观看视频 | 一区二区三区视频在线观看 | 亚洲第一天堂 | 久久99视频这里只有精品 | 亚洲一区二区三区在线播放 | 精品一区二区三区四区五区 | 又黄又色 | 国产视频观看 | 亚洲 中文 欧美 日韩 在线观看 | 国产三级在线观看播放 | 国产免费一级片 | 国产免费一区二区三区 | 亚洲福利精品 | 国产一区不卡在线观看 | 日韩伦理一区二区 | 亚洲精品片 | 亚洲激情一区二区三区 | 午夜三级在线观看 | 视频一区中文字幕 | 97超碰人人草 | 365夜爽爽欧美性午夜免费视频 | 91社区视频 | 亚洲国产欧美日韩 | 91中文字幕在线 | 日韩国产在线 | 日韩中文字幕在线视频 | 中文一区| 精品一区二区三区在线观看 | 国产亚洲欧美在线视频 | 中文字幕一区二区三区乱码图片 | 日本超碰在线 | 亚洲人a| 好婷婷网| 亚洲精品一区二区三区免 | 天天干成人网 | 国产精品九九 | 韩日一区二区三区 | 成人精品| 国产精品日韩一区 |