<jupyter_start><jupyter_text>NumPyNumPy is the fundamental package for scientific computing with Python. It contains among other things:NumPy是使用Python进行科学计算的基础软件包。 它包含以下内容：- a powerful N-dimensional array object  一个强大的N维数组对象- sophisticated (broadcasting) functions  复杂（广播）功能（现在还不是很懂是什么）- tools for integrating C/C++ and Fortran code  用于集成C / C ++和Fortran代码的工具- useful linear algebra, Fourier transform, and random number capabilities  有用的线性代数，傅里叶变换和随机数能力（这些在后面需要练习）  数组功能<jupyter_code>import numpy as np

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

print a

print np.eye(3)<jupyter_output>[[ 1.  0.  0.]
 [ 0.  1.  0.]
 [ 0.  0.  1.]]
{'fraction_non_alphanumeric': 0.10194174757281553, 'fraction_numerical': 0.022653721682847898, 'mean_word_length': 4.785046728971962, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '659499', 'license': 'MIT', 'n_tokens_mistral': 283, 'n_tokens_neox': 291, 'n_words': 68, 'path': 'NumPyNote.ipynb', 'repo_name': 'RainFool/SciencePyNote', 'size': '618'}