上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 28 下一页
摘要: 1、HttpPost发送表单请求 2、HttpPost发送json参数请求 3、HttpPost发送xml参数请求 阅读全文
posted @ 2019-11-15 15:55 yixiu868 阅读(441) 评论(0) 推荐(0) 编辑
摘要: https://www.jianshu.com/p/46b42f7f593c 阅读全文
posted @ 2019-11-12 23:28 yixiu868 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 1 import random 2 import time 3 4 # 插入排序 5 def insertion_sort(arr, step): 6 for i in range(step, len(arr)): 7 for j in range(i, step - 1, -step): 8 if arr[j] < arr[j-step]: 9 arr[j], arr[j-step] = arr 阅读全文
posted @ 2019-11-01 17:41 yixiu868 阅读(114) 评论(0) 推荐(0) 编辑
摘要: https://www.jianshu.com/p/4c0723615a52 阅读全文
posted @ 2019-10-30 23:43 yixiu868 阅读(447) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/zhusongziye/article/details/77887554 阅读全文
posted @ 2019-10-30 20:32 yixiu868 阅读(1964) 评论(0) 推荐(0) 编辑
摘要: 1 import random 2 3 # 二分查找--递归实现 4 def binary_search(arr, left, right, num): 5 if left > right: 6 return -1 7 mid = (left + right) // 2 8 if arr[mid] < num: 9 left = mid + 1 10 elif arr[mid] > num: 11 阅读全文
posted @ 2019-10-30 10:43 yixiu868 阅读(132) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2019-10-29 00:08 yixiu868 阅读(1) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/noaman_wgs/article/category/6322770 阅读全文
posted @ 2019-10-25 23:04 yixiu868 阅读(63) 评论(0) 推荐(0) 编辑
摘要: 1 import random 2 3 def insert_sort(nums): 4 # 排序趟数 5 for i in range(1, len(nums)): 6 current = nums[i] 7 pre_index = i - 1 8 while pre_index >= 0 and nums[pr... 阅读全文
posted @ 2019-10-25 09:31 yixiu868 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 1 import random 2 3 4 def quick_sort(nums, start, end): 5 if start >= end: 6 return 7 low = start 8 mid = nums[low] 9 high = end 10 while low < high: 11 while low < high and mid <= nums[high]: 12 high 阅读全文
posted @ 2019-10-24 10:06 yixiu868 阅读(103) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 28 下一页