列表[]的应用非常广泛,例如:
sage: [i for i in range(20)]
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19]
再如:
sage: x="abcd"
sage: list(x)
['a', 'b', 'c', 'd']
列表类似于数组
标签:abcd,10,20,sage,列表,关于,15
来源: https://www.cnblogs.com/RicL/p/16688558.html