Python3 更新列表

Python3 更新列表

#!/usr/bin/python3

list = ['physics', 'chemistry', 1997, 2000]
print ("Value available at index 2 : ", list[2])

list[2] = 2001
print ("New value available at index 2 : ", list[2])

本文转自:http://codingdict.com/article/6513

猜你喜欢

转载自www.cnblogs.com/bczd/p/12106785.html