摘要:
# print(abs(-1)) #取绝对值##all() 对序列中的每一个元素进行布尔运算,如果全部是True 那么返回True ,有一个是FALSE那么返回false##特殊:当序列中没有可以迭代的对象时为True# print(all([1,2,0]))# print(all(['']))## 阅读全文
posted @ 2021-08-18 13:26
qin覃世广khhgy
阅读(53)
评论(0)
推荐(0)
摘要:
###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 阅读全文
posted @ 2021-08-18 13:25
qin覃世广khhgy
阅读(55)
评论(0)
推荐(0)
摘要:
# 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 = 阅读全文
posted @ 2021-08-18 09:02
qin覃世广khhgy
阅读(76)
评论(0)
推荐(0)
浙公网安备 33010602011771号