Python, python3
Use list in Python to sequence elements
Example:
L = [] # An empty list
L2 = [1, 2, 3] # A number list
L3 = ['A', 'B', 'C'] # a string list
L4 = [[3, 4], ['black', 'red', 'yellow'], [] # A list with a length of 3
The elements in the list can be of the same type or different types.
L5 = [1, "sdf", [34,56]
The first chapter of a basic python tutorial first describes how to install the fifth and sixth articles in python.
Terminal means the terminal. Because Python is cross-platform, you can understand it in terms of terminals.
In Windows, Start Menu --- run ----- CMD press Enter. This is the Dos interface, that is, the Terminal of Windows.
"The method for running python in Terminal is to input the program name and press the enter key ."
You have compiled a Python program named demo1, so you only need to enter demo1 and press Enter,
Then the program runs.
The first chapter of a basic python tutorial first describes how to install the fifth and sixth articles in python.
Terminal means the terminal. Because Python is cross-platform, you can understand it in terms of terminals.
In Windows, Start Menu --- run ----- CMD press Enter. This is the Dos interface, that is, the Terminal of Windows.
"The method for running python in Terminal is to input the program name and press the enter key ."
You have compiled a Python program named demo1, so you only need to enter demo1 and press Enter,
Then the program runs.