Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - How to complete the following in python?
How to complete the following in python?
A: First of all, this question is divided into two parts. Create a random array of 1 0x10 in1,store it in a Txt file, and then read it out for relevant statistical analysis. The specific code is as follows.

Use np.savetext () and np.loadtext () to store and load data.

After loading data from the file, the maximum value, minimum value, average value and the first and second norms will be analyzed. One of the running results is as follows. Pay attention to the code comments in 1 picture and analyze the results of the following code running. It's all a comparison.