2020年7月17日

查找,冒泡排序

摘要: l1=[i for i in range(1,10)]# l1=1,2,3,4,5,6,7,8,9,10,11,12,13,14# # start_index=0# # end_index=len(l1)-1# while start_index<=end_index:# # mid_index=( 阅读全文

posted @ 2020-07-17 21:31 牛坚 阅读(107) 评论(0) 推荐(0) 编辑

追加值的次数的方法

摘要: 第一种:s1 = 'python,java,php,go,c,python,java,php,go,c,python,java,php,go,c's=s1.split(',')# dic={}# for i in s:# if i not in dic:# dic[i]=1# else:# dic[ 阅读全文

posted @ 2020-07-17 14:49 牛坚 阅读(139) 评论(0) 推荐(0) 编辑

导航