摘要:
def shuffle(self, x, random=None): if random is None: randbelow = self._randbelow for i in reversed(range(1, len(x))): # pick an element in x[:i+1] wi 阅读全文
摘要:
dic={'a':1,'b':2,'c':3} print(dic.items()) #dict_items([('a', 1), ('b', 2), ('c', 3)]) print(set(dic.items())) #{('c', 3), ('a', 1), ('b', 2)} items() 阅读全文