📜  numpy.byte_bounds()函数– Python

📅  最后修改于: 2022-05-13 01:55:45.033000             🧑  作者: Mango

numpy.byte_bounds()函数– Python

numpy.byte_bounds()函数返回指向数组端点的指针。

代码#1:

# Python program explaining
# numpy.byte_bounds() function
            
# importing numpy as geek 
import numpy as geek 
   
arr = geek.eye(2, dtype = 'f')
  
gfg = geek.byte_bounds(arr)
      
print (gfg)

输出 :

(37062512, 37062528)


代码#2:

# Python program explaining
# numpy.byte_bounds() function
            
# importing numpy as geek 
import numpy as geek 
   
arr = geek.eye(2)
  
gfg = geek.byte_bounds(arr)
      
print (gfg)

输出 :

(30421344, 30421376)