08 2021 档案
摘要:# print(abs(-1)) #取绝对值##all() 对序列中的每一个元素进行布尔运算,如果全部是True 那么返回True ,有一个是FALSE那么返回false##特殊:当序列中没有可以迭代的对象时为True# print(all([1,2,0]))# print(all(['']))##
阅读全文
摘要:###reduce_test 函数####################### num_1 = [1,2,3,100]# def reduce_test(func,array,init=None):# if init is None:# res = array.pop(0)# else:# res
阅读全文
摘要:# movie_people = ['qsg','sb_lhq','sb_xw','ljy']# li = []# for p in movie_people:# if not p.startswith('sb'):# li.append(p)# print(li)# movie_people =
阅读全文
浙公网安备 33010602011771号