📜  python dlist - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:23.123000             🧑  作者: Mango

代码示例1
#this is how  to create a list:
#I named it mylist, but you can name it whatever you like

myList = [1,2,3,4,5]
print(myList[0]) # this will print the first element of the list
print(myList[1]) #this will print the second element of the list
print(myList[2])#and so on
print(myList[3])
print(myList[4])