美文网首页Python
Data Structures

Data Structures

作者: Chemizi | 来源:发表于2017-12-01 11:57 被阅读0次

list = ["a", "b", "c"]#可修改数组

dictionary = {"a": 0, "b": 1, "c": 2}#hash表

set = {"a", "b", "c"}#集合

tuple = ("a", "b", "c")#不可修改数组

def generator(): #链表

  yield "a"

  yield "b"

  yield "c"

for generator in generator():

print(generator)

相关文章

网友评论

    本文标题:Data Structures

    本文链接:https://www.haomeiwen.com/subject/zcnibxtx.html