1.Set集合 class set(object): """ set() -> new empty set object set(iterable) -> new set object Build an unordered collection of unique elements. """ def add(self, *args, **kwargs): # real signature unknown ""&qu…
for循环遍历整个列表 pizzas = ['pizzahut','dicos','KFC'] for pizza in pizzas: print ("I like "+ pizza + " pizza!") print ("I really like pizza") 运行结果 I like pizzahut pizza! I like dicos pizza! I like KFC pizza! I really like pizza 注意点…