gpt4 book ai didi

python - numpy 类型字符串中的 "|"是什么意思?

转载 作者:太空狗 更新时间:2023-10-29 21:01:01 25 4
gpt4 key购买 nike

numpy 文档中的许多 dtype 字符串示例都具有前导 | 字符,例如靠近 the structured arrays page 顶部的 '|S10'在 numpy 手册中,但都不是 the structured arrays page也不是 data type objects reference似乎解释了这个 | 的意思。 | 在此上下文中是什么意思,它记录在何处?

最佳答案

它指的是byteorder/endianness的数据类型。特别是,'|'表示字节顺序不适用,例如 8 位数字。

关于python - numpy 类型字符串中的 "|"是什么意思?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24202220/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com