Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - How does python input array matrix?
How does python input array matrix?
The following is an array matrix input method based on python3.4:

1. Import numpy as np.

2.arr =

3.matrix_a = np.array(arr)2。

4. Manually define an empty array: arr =]. ?

Python is an object-oriented explanatory computer programming language, which was invented by Dutch Guido van Rossum in 1989, and was first published in 199 1 year.

Python is pure free software. The source code and interpreter CPython followed? GPL(GNU? General public license) agreement [2]? . Python syntax is concise, and one of its characteristics is to force the use of spaces as statement indents.

Python has a rich and powerful library. Often dubbed glue language, it can easily connect various modules made by other languages (especially C/C++). A common application is to quickly generate a prototype of a program (sometimes even the final interface of the program) with Python, and then analyze it [3]? Some parts with special requirements are rewritten in a more appropriate language, such as the graphics rendering module in 3D games, which requires high performance, so it can be rewritten in C/C++ and then encapsulated into an extended class library that Python can call. It should be noted that when using extended class libraries, platform issues may need to be considered, and some may not provide cross-platform implementation.

On July 20th, IEEE released the list of 20 17 programming languages: Python ranked first.