[Python commonly used small tools] Python initializes a fixed-length array

# -*- coding: utf-8 -*-
"""
Created on Wed Jan  6 15:23:57 2021

@author: sangliping
"""
import numpy as numpy
a = numpy.empty(x, dtype=object)#x是数组的长度

Search [Zixin] on WeChat or scan the QR code below to make friends and make progress together. The article is continuously updated. At present, I am organizing the study notes of Python hundred battles, and I look forward to more updates in the future.Insert picture description here

Guess you like

Origin blog.csdn.net/weixin_51656605/article/details/112279865