介绍
在本教程中,你将学习如何使用数值范围创建 NumPy 数组。NumPy 提供了多种函数来从指定的数值范围创建数组,例如 arange
、linspace
和 logspace
。
虚拟机使用提示
虚拟机启动完成后,点击左上角切换到 Notebook 标签页,以访问 Jupyter Notebook 进行练习。
有时,你可能需要等待几秒钟,直到 Jupyter Notebook 完成加载。由于 Jupyter Notebook 的限制,操作验证无法自动化。
如果在学习过程中遇到问题,请随时向 Labby 提问。实验结束后提供反馈,我们将及时为你解决问题。
Skills Graph
%%%%{init: {'theme':'neutral'}}%%%%
flowchart RL
python(("Python")) -.-> python/ModulesandPackagesGroup(["Modules and Packages"])
python(("Python")) -.-> python/DataScienceandMachineLearningGroup(["Data Science and Machine Learning"])
numpy(("NumPy")) -.-> numpy/ArrayBasicsGroup(["Array Basics"])
numpy(("NumPy")) -.-> numpy/ArrayManipulationGroup(["Array Manipulation"])
numpy(("NumPy")) -.-> numpy/MathandStatisticsGroup(["Math and Statistics"])
python(("Python")) -.-> python/PythonStandardLibraryGroup(["Python Standard Library"])
numpy/ArrayBasicsGroup -.-> numpy/1d_array("1D Array Creation")
numpy/ArrayBasicsGroup -.-> numpy/data_array("Data to Array")
numpy/ArrayBasicsGroup -.-> numpy/data_type("Data Types")
numpy/ArrayManipulationGroup -.-> numpy/reshape("Reshape")
numpy/MathandStatisticsGroup -.-> numpy/math_ops("Math Operations")
python/ModulesandPackagesGroup -.-> python/importing_modules("Importing Modules")
python/ModulesandPackagesGroup -.-> python/using_packages("Using Packages")
python/PythonStandardLibraryGroup -.-> python/math_random("Math and Random")
python/DataScienceandMachineLearningGroup -.-> python/numerical_computing("Numerical Computing")
subgraph Lab Skills
numpy/1d_array -.-> lab-86396{{"从数值范围创建 NumPy 数组"}}
numpy/data_array -.-> lab-86396{{"从数值范围创建 NumPy 数组"}}
numpy/data_type -.-> lab-86396{{"从数值范围创建 NumPy 数组"}}
numpy/reshape -.-> lab-86396{{"从数值范围创建 NumPy 数组"}}
numpy/math_ops -.-> lab-86396{{"从数值范围创建 NumPy 数组"}}
python/importing_modules -.-> lab-86396{{"从数值范围创建 NumPy 数组"}}
python/using_packages -.-> lab-86396{{"从数值范围创建 NumPy 数组"}}
python/math_random -.-> lab-86396{{"从数值范围创建 NumPy 数组"}}
python/numerical_computing -.-> lab-86396{{"从数值范围创建 NumPy 数组"}}
end