How to create a list in Visual Studio 2019 - Methods to create a list

Time: 2022-02-12Source: Huajun Software TutorialAuthor: Xiao Hulu

Many people don’t know how to create a list in Visual Studio 2019? The article brought to you today is Visual Studio If you still don’t know how to create a list in 2019, let’s learn it with the editor.

Step 1: Create a new project (as shown in the picture).


Step 2: Configure a new project, you can modify the project name (as shown in the figure).


Step 3: Use [ ] to create a list directly

Code:

​​​ #Create list

um = [1, 2, 3, 4, 5, 6, 7]

​​​ #Then output the variable

Print(um)


Step 4: Click the start button to run the preview (as shown in the picture).



The above is the entire content of how to create a list in Visual Studio 2019 brought to you by the editor. I hope it can help you.

Related articles更多>>

Popular recommendations